autopep8: fix E124 closing bracket does not match visual indentation
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 13 Feb 2019 15:34:51 +0100
changeset 832 f6ecdf1de47b
parent 831 da6c6671ce48
child 833 5aff949fc8f6
autopep8: fix E124 closing bracket does not match visual indentation
__pkginfo__.py
rql/nodes.py
test/unittest_analyze.py
--- a/__pkginfo__.py	Wed Feb 13 15:31:44 2019 +0100
+++ b/__pkginfo__.py	Wed Feb 13 15:34:51 2019 +0100
@@ -72,7 +72,7 @@
                              ['rql/gecode_solver.cpp'],
                              libraries=['gecodeint', 'gecodekernel', 'gecodesearch',],
                              extra_compile_args=['-DGE_VERSION=%s' % GECODE_VERSION],
-                         )
+                             )
                    ]
 else:
     ext_modules = [Extension('rql.rql_solve',
@@ -84,8 +84,8 @@
                                          ],
                               extra_compile_args=['/DGE_VERSION=%s' % GECODE_VERSION, '/EHsc'],
                               #extra_link_args=['-static-libgcc'],
-                              )
-                    ]
+                             )
+                   ]
 
 install_requires = [
     'logilab-common >= 0.47.0',
--- a/rql/nodes.py	Wed Feb 13 15:31:44 2019 +0100
+++ b/rql/nodes.py	Wed Feb 13 15:34:51 2019 +0100
@@ -49,7 +49,7 @@
                     date: 'Date',
                     time: 'Time',
                     timedelta: 'Interval',
-                    }
+                   }
 if sys.version_info < (3,):
     ETYPE_PYOBJ_MAP[long] = 'Int'
     ETYPE_PYOBJ_MAP[unicode] = 'String'
--- a/test/unittest_analyze.py	Wed Feb 13 15:31:44 2019 +0100
+++ b/test/unittest_analyze.py	Wed Feb 13 15:34:51 2019 +0100
@@ -95,71 +95,71 @@
                                       ('Company', ('Int',)),
                                       ('Address', ('Int',)),
                                       ('Eetype', ('Int',)),
-                                      )
-                                    ),
+                                    )
+                                   ),
             'creation_date' : RelationSchema((('Person', ('Datetime',)),
                                                 ('Student', ('Datetime',)),
                                                 ('Company', ('Datetime',)),
                                                 ('Address', ('Datetime',)),
                                                 ('Eetype', ('Datetime',)),
-                                                )
-                                    ),
+                                              )
+                                             ),
             'name' : RelationSchema((('Person', ('String',)),
                                        ('Student', ('String',)),
                                        ('Company', ('String',)),
-                                      )
+                                     )
                                     ),
             'firstname' : RelationSchema((('Person', ('String',)),
                                             ('Student', ('String',)),
-                                           )
-                                    ),
+                                          )
+                                         ),
             'work_for' : RelationSchema((('Person', ('Company',)),
                                            ('Student', ('Company',)),
-                                           ),
+                                         ),
                                          card='?*'),
             'is' : RelationSchema((('Person', ('Eetype',)),
                                      ('Student', ('Eetype',)),
                                      ('Company', ('Eetype',)),
                                      ('Address', ('Eetype',)),
                                      ('Eetype', ('Eetype',)),
-                                     )
-                                   ),
+                                   )
+                                  ),
             'is_instance_of' : RelationSchema((('Person', ('Eetype',)),
                                               ('Student', ('Eetype',)),
                                               ('Company', ('Eetype',)),
                                               ('Address', ('Eetype',)),
                                               ('Eetype', ('Eetype',)),
-                                              )
-                                            ),
+                                               )
+                                              ),
             'connait' : RelationSchema((('Person', ('Person',)),
                                          ('Student', ('Person',)),
                                          ('Student', ('Student',)),
                                          ('Person', ('Student',)),
-                                         ),
+                                        ),
                                         symmetric=True),
             'located' : RelationSchema((('Person', ('Address',)),
                                           ('Student', ('Address',)),
                                           ('Company', ('Address',)),
-                                         )
+                                        )
                                        ),
             'owned_by' : RelationSchema((('Person', ('Person',)),
                                            ('Student', ('Person',)),
                                            ('Company', ('Person',)),
                                            ('Eetype', ('Person',)),
-                                           )
-                                         ),
+                                         )
+                                        ),
             'identity' : RelationSchema((('Person', ('Person',)),
                                            ('Student', ('Student',)),
                                            ('Company', ('Company',)),
                                            ('Address', ('Address',)),
                                            ('Eetype', ('Eetype',)),
-                                      )
-                                    ),
+                                         )
+                                        ),
             'number' : RelationSchema((('Person', ('Int',)),
                                          ('Student', ('Int',)),
                                          ('Company', ('Float',)),
-                                      )
-                                    ),
+                                       )
+                                      ),
             }
         for rtype, rschema in self._relations.items():
             rschema.type = rtype
@@ -317,7 +317,7 @@
         self.assertCountEqual(sols, [{'X': 'Company', 'A': 'Address', 'P': 'Person'},
                                      {'X': 'Person', 'A': 'Address', 'P': 'Person'},
                                      {'X': 'Student', 'A': 'Address', 'P': 'Person'},
-                                    ])
+                                     ])
 
     def test_uid_func_mapping(self):
         h = self.helper