mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-23 23:13:38 -06:00
Fixed PEP8
This commit is contained in:
parent
66a1123268
commit
352eb15dc7
@ -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
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user