mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix PEP-8 issues.
This commit is contained in:
@@ -52,6 +52,7 @@ _ = gettext
|
||||
register_global_typecasters()
|
||||
configureDriverEncodings(encodings)
|
||||
|
||||
|
||||
class Connection(BaseConnection):
|
||||
"""
|
||||
class Connection(object)
|
||||
@@ -408,7 +409,6 @@ class Connection(BaseConnection):
|
||||
"SET client_encoding='{0}';"
|
||||
.format(postgres_encoding))
|
||||
|
||||
|
||||
if status is not None:
|
||||
self.conn.close()
|
||||
self.conn = None
|
||||
|
||||
@@ -35,6 +35,7 @@ def getEncoding(key):
|
||||
"""
|
||||
return encode_dict.get(key, ['UNICODE', 'utf-8'])
|
||||
|
||||
|
||||
def configureDriverEncodings(encodings):
|
||||
# Replace the python encoding for original name and renamed encodings
|
||||
# psycopg2 removes the underscore in conn.encoding
|
||||
|
||||
Reference in New Issue
Block a user