From: Karl O. Pinc Date: Sun, 21 Oct 2018 22:20:38 +0000 (-0500) Subject: Fix flake8 E251 unexpected spaces problems X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=987394a418c36e5226a35da2151a29aa751031bb;p=pgwui_core Fix flake8 E251 unexpected spaces problems --- diff --git a/src/pgwui_core/pgwui_core.py b/src/pgwui_core/pgwui_core.py index 1ea832a..9910cd2 100644 --- a/src/pgwui_core/pgwui_core.py +++ b/src/pgwui_core/pgwui_core.py @@ -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