Fix flake8 E251 unexpected spaces problems
authorKarl O. Pinc <kop@meme.com>
Sun, 21 Oct 2018 22:20:38 +0000 (17:20 -0500)
committerKarl O. Pinc <kop@meme.com>
Sun, 21 Oct 2018 23:58:53 +0000 (18:58 -0500)
src/pgwui_core/pgwui_core.py

index 1ea832a325b817ba9382793d4ec48edad0ec9471..9910cd255fc63f4523e4a13417d5d3083589b776 100644 (file)
@@ -611,7 +611,7 @@ class UploadError(Exception):
       * DataLineError
         *  TooManyColsError
     '''
-    def __init__(self, e, lineno = '', descr='', detail='', data = ''):
+    def __init__(self, e, lineno='', descr='', detail='', data=''):
         super(UploadError, self).__init__()
         self.lineno = lineno
         self.e = e
@@ -1597,11 +1597,11 @@ class DBConnector(object):
             registry = self.uh.request.registry
             try:
                 conn = psycopg2.connect(
-                    database = self.db,
-                    user = self.user,
-                    password = self.password,
-                    host = registry.settings['pg_host'],
-                    port = registry.settings['pg_port'])
+                    database=self.db,
+                    user=self.user,
+                    password=self.password,
+                    host=registry.settings['pg_host'],
+                    port=registry.settings['pg_port'])
             except psycopg2.OperationalError:
                 errors = [self.authfailerror_factory()]
                 havecreds = False