Skip to content

Commit 01792ea

Browse files
committed
Cleanup: remove dependency from dynamic code to global state.
1 parent 3a48020 commit 01792ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pywisetransfer/deprecation.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, *args, **kwargs):
2121
orig, args = args[0], args[1:]
2222
exec(
2323
f"""
24-
class deprecated(deprecated):
24+
class deprecated:
2525
@staticmethod
2626
def {orig.__name__}(*args, **kwargs):
2727
self._emit_warning()
@@ -30,7 +30,6 @@ def {orig.__name__}(*args, **kwargs):
3030
self.f = deprecated.{orig.__name__}
3131
""",
3232
locals(),
33-
globals(),
3433
)
3534
self.message = self._message(*args, **kwargs)
3635

0 commit comments

Comments
 (0)