add classmethod to _close

pull/203/head
meihkv 2021-02-02 10:09:51 -05:00 committed by GitHub
parent b24ac6e941
commit a6bf3e4855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class Connection(object):
template = " {}"
result.append(template.format(engine_url.__repr__()))
return "\n".join(result)
@classmethod
def _close(cls, descriptor):
if isinstance(descriptor, Connection):
conn = descriptor