Skip to content

Commit c01d728

Browse files
committed
del attr_changed
1 parent d35e905 commit c01d728

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

irods/session.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ class NonAnonymousLoginWithoutPassword(RuntimeError):
7171
pass
7272

7373

74-
@contextlib.contextmanager
75-
def attr_changed(obj, attrname, value):
76-
old = getattr(obj, attrname, None)
77-
try:
78-
setattr(obj, attrname, value)
79-
yield
80-
finally:
81-
setattr(obj, attrname, old)
82-
83-
8474
class iRODSSession:
8575

8676
def library_features(self):

0 commit comments

Comments
 (0)