autopep8: fix E305 expected 2 blank lines after class or function definition
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 13 Feb 2019 12:28:28 +0100
changeset 826 c993c0593d6c
parent 825 ae3aaee0ef55
child 827 88960edeba15
autopep8: fix E305 expected 2 blank lines after class or function definition
__pkginfo__.py
rql/__init__.py
rql/analyze.py
rql/pygments_ext.py
rql/rqlgen.py
rql/stcheck.py
rql/undo.py
test/unittest_analyze.py
test/unittest_compare.py
test/unittest_rqlgen.py
tools/rql_analyze.py
--- a/__pkginfo__.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/__pkginfo__.py	Wed Feb 13 12:28:28 2019 +0100
@@ -64,6 +64,7 @@
 def encode_version(a,b,c):
     return ((a<<16)+(b<<8)+c)
 
+
 GECODE_VERSION = encode_version(*gecode_version())
 
 if sys.platform != 'win32':
--- a/rql/__init__.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/rql/__init__.py	Wed Feb 13 12:28:28 2019 +0100
@@ -251,4 +251,5 @@
         exc.__traceback__ = sys.exc_info()[-1]
         raise exc
 
+
 pyparse = parse
--- a/rql/analyze.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/rql/analyze.py	Wed Feb 13 12:28:28 2019 +0100
@@ -125,6 +125,7 @@
         expr = " or ".join(list(orred) )
         self.add_expr(tuple(variables), expr )
 
+
 # GECODE based constraint solver
 _AND = 0 # symbolic values
 _OR = 1
@@ -280,6 +281,7 @@
             orred.append(anded)
         self.op.append(orred)
 
+
 if rql_solve is None:
     CSPProblem = ConstraintCSPProblem
 else:
--- a/rql/pygments_ext.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/rql/pygments_ext.py	Wed Feb 13 12:28:28 2019 +0100
@@ -43,5 +43,6 @@
         ],
     }
 
+
 _mapping.LEXERS['RqlLexer'] = ('rql.pygments_ext', 'RQL', ('rql',), ('*.rql',), ('text/x-rql',))
 
--- a/rql/rqlgen.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/rql/rqlgen.py	Wed Feb 13 12:28:28 2019 +0100
@@ -201,6 +201,7 @@
         return 'SET %s WHERE %s' % (', '.join(new_restrictions),
                                     ', '.join(old_restrictions))
 
+
 RQLGENERATOR = RQLGenerator()
 
 def _test():
@@ -210,5 +211,6 @@
     import doctest, sys
     return doctest.testmod(sys.modules[__name__])
 
+
 if __name__ == "__main__":
     _test()
--- a/rql/stcheck.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/rql/stcheck.py	Wed Feb 13 12:28:28 2019 +0100
@@ -48,6 +48,7 @@
     def __init__(self, node):
         self.node = node
 
+
 VAR_SELECTED = 1
 VAR_HAS_TYPE_REL = 2
 VAR_HAS_UID_REL = 4
--- a/rql/undo.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/rql/undo.py	Wed Feb 13 12:28:28 2019 +0100
@@ -286,6 +286,7 @@
         """undo the operation on the union's children"""
         self.union.insert(self.origindex, self.select)
 
+
 __all__ = ('SelectionManager', 'MakeVarOperation', 'UndefineVarOperation',
            'SelectVarOperation', 'UnselectVarOperation', 'AddNodeOperation',
            'ReplaceNodeOperation', 'RemoveNodeOperation',
--- a/test/unittest_analyze.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/test/unittest_analyze.py	Wed Feb 13 12:28:28 2019 +0100
@@ -185,6 +185,7 @@
     def eschema(self, e_type):
         return self._types[e_type]
 
+
 UNRESOLVABLE_QUERIES = (
     'Person X WHERE Y work_for X',
     'Person X WHERE X work_for Y, Y is Address',
--- a/test/unittest_compare.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/test/unittest_compare.py	Wed Feb 13 12:28:28 2019 +0100
@@ -181,5 +181,6 @@
         r2 = "Note K WHERE K a_faire_par Y, K creation_date > today-10, not Y nom 'jphc' or not Y nom 'ludal';"
         self._compareNotEquivalent(r1, r2)
 
+
 if __name__ == '__main__':
     unittest_main()
--- a/test/unittest_rqlgen.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/test/unittest_rqlgen.py	Wed Feb 13 12:28:28 2019 +0100
@@ -129,5 +129,6 @@
         self.assertEqual(rql, 'DELETE Person X where X firstname "Clark", '
                           'X lastname "Kent"')
         
+
 if __name__ == '__main__':
     unittest.main()
--- a/tools/rql_analyze.py	Wed Feb 13 16:06:24 2019 +0100
+++ b/tools/rql_analyze.py	Wed Feb 13 12:28:28 2019 +0100
@@ -53,6 +53,7 @@
     sol2 = helper2.get_solutions(node2 )
     return helper1, helper2, node1, node2, sol1, sol2
 
+
 if len(sys.argv)<2:
     print("Usage: rql_analyze.py file")
     sys.exit(1)