From 352eb15dc7f82662606ab625d600e5bbe3854aa5 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 1 Aug 2022 22:06:34 +0530 Subject: [PATCH] Fixed PEP8 --- web/config.py | 6 +++--- web/pgacloud/utils/misc.py | 2 +- web/pgadmin/authenticate/kerberos.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/config.py b/web/config.py index 4cc1fd5d6..96885b331 100644 --- a/web/config.py +++ b/web/config.py @@ -107,9 +107,9 @@ NODE_BLACKLIST = [] # We only set SERVER_MODE if it's not already set. That's to allow the # runtime to force it to False. # -# NOTE: If you change the value of SERVER_MODE or DATA_DIR in an included config -# file, you may also need to redefine any values below that are derived -# from it, notably various paths such as LOG_FILE, SQLITE_PATH, +# NOTE: If you change the value of SERVER_MODE or DATA_DIR in an included +# config file, you may also need to redefine any values below that are +# derived from it, notably various paths such as LOG_FILE, SQLITE_PATH, # SESSION_DB_PATH, STORAGE_DIR, KERBEROS_CCACHE_DIR, and # AZURE_CREDENTIAL_CACHE_DIR diff --git a/web/pgacloud/utils/misc.py b/web/pgacloud/utils/misc.py index 586bf09c1..6bb08b908 100644 --- a/web/pgacloud/utils/misc.py +++ b/web/pgacloud/utils/misc.py @@ -39,4 +39,4 @@ def get_my_ip(): def get_random_id(): """ Return a random 10 byte string """ letters = string.ascii_letters + string.digits - return(''.join(random.choice(letters) for _ in range(10))) + return ''.join(random.choice(letters) for _ in range(10)) diff --git a/web/pgadmin/authenticate/kerberos.py b/web/pgadmin/authenticate/kerberos.py index 81205d654..642a73905 100644 --- a/web/pgadmin/authenticate/kerberos.py +++ b/web/pgadmin/authenticate/kerberos.py @@ -263,7 +263,7 @@ class KerberosAuthentication(BaseAuthentication): del_creds = getattr(context, 'delegated_creds', None) if del_creds: deleg_creds = context.delegated_creds - del(deleg_creds) + del deleg_creds def __auto_create_user(self, username): """Add the kerberos user to the internal SQLite database."""