add classmethod to _close
parent
b24ac6e941
commit
a6bf3e4855
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue