From: Karl O. Pinc Date: Wed, 24 Oct 2018 20:50:49 +0000 (-0500) Subject: Move binary operators to start of line X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=5a5a7f507d24dcf1df43e7a810bd606dea6b6ad8;p=pgwui_core Move binary operators to start of line --- diff --git a/src/pgwui_core/pgwui_core.py b/src/pgwui_core/pgwui_core.py index a09c16b..fe14ccf 100644 --- a/src/pgwui_core/pgwui_core.py +++ b/src/pgwui_core/pgwui_core.py @@ -289,8 +289,8 @@ class CredsLoadedForm(LoadedForm): Produces the dict pyramid will use to render the form. ''' response = super(CredsLoadedForm, self).write(result, errors) - if ('havecreds' not in response or - ('havecreds' in response and not response['havecreds'])): + if ('havecreds' not in response + or ('havecreds' in response and not response['havecreds'])): # We don't know if the credentials are good or # we know they are bad. Keep them out of the session. response['user'] = '' @@ -1421,8 +1421,8 @@ class UploadHandler(SessionDBHandler): if hasattr(self, 'data'): response['lines'] = self.data.lineno - 1 response['e_cnt'] = len(errors) - response['db_changed'] = (not response['errors'] and - self.uf['action'] != '') + response['db_changed'] = (not response['errors'] + and self.uf['action'] != '') return response