autopep8: fix E128 continuation line under-indented for visual indent
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Wed, 13 Feb 2019 17:22:18 +0100
changeset 845 15634db57820
parent 844 241520f99bca
child 846 435999068f66
autopep8: fix E128 continuation line under-indented for visual indent
rql/__init__.py
rql/stmts.py
test/unittest_analyze.py
test/unittest_nodes.py
--- a/rql/__init__.py	Wed Feb 13 17:15:44 2019 +0100
+++ b/rql/__init__.py	Wed Feb 13 17:22:18 2019 +0100
@@ -112,7 +112,7 @@
                                         debug)
 
     def compute_all_solutions(self, rqlst, uid_func_mapping=None, kwargs=None,
-                          debug=False):
+                              debug=False):
         """compute syntax tree solutions with all types restriction (eg
         is/instance_of relations) ignored
         """
--- a/rql/stmts.py	Wed Feb 13 17:15:44 2019 +0100
+++ b/rql/stmts.py	Wed Feb 13 17:22:18 2019 +0100
@@ -969,7 +969,7 @@
             result.append('WHERE ' + self.where.as_string(kwargs=kwargs))
         if self.having:
             result.append('HAVING ' + ','.join(term.as_string(kwargs=kwargs)
-                                          for term in self.having))
+                                               for term in self.having))
         return ' '.join(result)
 
     def copy(self):
--- a/test/unittest_analyze.py	Wed Feb 13 17:15:44 2019 +0100
+++ b/test/unittest_analyze.py	Wed Feb 13 17:22:18 2019 +0100
@@ -127,10 +127,10 @@
                                    )
                                   ),
             'is_instance_of' : RelationSchema((('Person', ('Eetype',)),
-                                              ('Student', ('Eetype',)),
-                                              ('Company', ('Eetype',)),
-                                              ('Address', ('Eetype',)),
-                                              ('Eetype', ('Eetype',)),
+                                               ('Student', ('Eetype',)),
+                                               ('Company', ('Eetype',)),
+                                               ('Address', ('Eetype',)),
+                                               ('Eetype', ('Eetype',)),
                                                )
                                               ),
             'connait' : RelationSchema((('Person', ('Person',)),
@@ -345,7 +345,7 @@
         # substitute as rhs of the uid relation
         node = h.parse('Any X WHERE X name %(company)s')
         h.compute_solutions(node, uid_func_mapping, {'company': 'Logilab'},
-                        debug=DEBUG)
+                            debug=DEBUG)
         sols = node.children[0].solutions
         self.assertCountEqual(sols, [{'X': 'Company'}])
 
@@ -451,7 +451,7 @@
         self.helper.compute_solutions(node, debug=DEBUG)
         sols = node.children[0].solutions
         self.assertCountEqual(sols, [{'P': 'Person', 'X': 'Person'},
-                                {'P': 'Student', 'X': 'Person'}])
+                                     {'P': 'Student', 'X': 'Person'}])
         self.helper.simplify(node)
         self.helper.compute_solutions(node, debug=DEBUG)
         sols = node.children[0].solutions
--- a/test/unittest_nodes.py	Wed Feb 13 17:15:44 2019 +0100
+++ b/test/unittest_nodes.py	Wed Feb 13 17:22:18 2019 +0100
@@ -611,7 +611,7 @@
 
     def test_subq_colalias_compat(self):
         tree = sparse('Any X ORDERBY N WHERE X creation_date <NOW WITH X,N BEING ('
-                     '(Any X,N WHERE X firstname N) UNION (Any X,N WHERE X name N, X is Company))')
+                      '(Any X,N WHERE X firstname N) UNION (Any X,N WHERE X name N, X is Company))')
         select = tree.children[0]
         select.save_state()
         select.remove_sort_term(select.orderby[0])