Fixed PEP8

This commit is contained in:
Akshay Joshi 2022-08-01 22:06:34 +05:30
parent 66a1123268
commit 352eb15dc7
3 changed files with 5 additions and 5 deletions

View File

@ -107,9 +107,9 @@ NODE_BLACKLIST = []
# We only set SERVER_MODE if it's not already set. That's to allow the # We only set SERVER_MODE if it's not already set. That's to allow the
# runtime to force it to False. # runtime to force it to False.
# #
# NOTE: If you change the value of SERVER_MODE or DATA_DIR in an included config # NOTE: If you change the value of SERVER_MODE or DATA_DIR in an included
# file, you may also need to redefine any values below that are derived # config file, you may also need to redefine any values below that are
# from it, notably various paths such as LOG_FILE, SQLITE_PATH, # derived from it, notably various paths such as LOG_FILE, SQLITE_PATH,
# SESSION_DB_PATH, STORAGE_DIR, KERBEROS_CCACHE_DIR, and # SESSION_DB_PATH, STORAGE_DIR, KERBEROS_CCACHE_DIR, and
# AZURE_CREDENTIAL_CACHE_DIR # AZURE_CREDENTIAL_CACHE_DIR

View File

@ -39,4 +39,4 @@ def get_my_ip():
def get_random_id(): def get_random_id():
""" Return a random 10 byte string """ """ Return a random 10 byte string """
letters = string.ascii_letters + string.digits letters = string.ascii_letters + string.digits
return(''.join(random.choice(letters) for _ in range(10))) return ''.join(random.choice(letters) for _ in range(10))

View File

@ -263,7 +263,7 @@ class KerberosAuthentication(BaseAuthentication):
del_creds = getattr(context, 'delegated_creds', None) del_creds = getattr(context, 'delegated_creds', None)
if del_creds: if del_creds:
deleg_creds = context.delegated_creds deleg_creds = context.delegated_creds
del(deleg_creds) del deleg_creds
def __auto_create_user(self, username): def __auto_create_user(self, username):
"""Add the kerberos user to the internal SQLite database.""" """Add the kerberos user to the internal SQLite database."""