Fix PEP-8 issues.

This commit is contained in:
Dave Page
2019-01-11 22:13:17 +05:30
parent d641b47adb
commit 14f462e9dc
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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