Skip to content

Commit 450bd61

Browse files
author
James William Pye
committed
Remove reconnect method.
InterfaceElement's tend to be one-shot objects.
1 parent d26dc57 commit 450bd61

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

postgresql/api.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,15 +1306,6 @@ def close(self) -> None:
13061306
Does nothing if the connection is already closed.
13071307
"""
13081308

1309-
def reconnect(self, *args, **kw) -> None:
1310-
"""
1311-
Method drawing the effect of `close` then `connect`.
1312-
1313-
Any arguments given will be applied to `connect`.
1314-
"""
1315-
self.close()
1316-
self.connect(*args, **kw)
1317-
13181309
__enter__ = methodcaller('connect')
13191310
def __exit__(self, typ, obj, tb):
13201311
"""

0 commit comments

Comments
 (0)