Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated method #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,42 +1916,6 @@ def keepAlive(self):
logger.debug("... error not reconnecting")
return False

def seppuku(self, softclose=False): # pragma: no cover
"""
Terminates connection with killSession(). If softclose is False, the
session is really terminated disregarding its connection refcount.
If softclose is True then the connection refcount is decremented by 1.

:param softclose: Boolean

** Deprecated ** Use :meth:`close`.
Our apologies for any offense caused by this previous method name.
"""
warnings.warn("Deprecated. Use close()",
DeprecationWarning)
self._connected = False
oldC = self.c
if oldC is not None:
try:
if softclose:
try:
r = oldC.sf.getSessionService().getReferenceCount(
self._sessionUuid)
oldC.closeSession()
if r < 2:
self._session_cb and self._session_cb.close(self)
except Ice.OperationNotExistException:
oldC.closeSession()
else:
self._closeSession()
finally:
oldC.__del__()
oldC = None
self.c = None

self._proxies = NoProxies()
logger.info("closed connection (uuid=%s)" % str(self._sessionUuid))

def close(self, hard=True): # pragma: no cover
"""
Terminates connection with killSession(), where the session is
Expand Down