Skip to content
Snippets Groups Projects
Unverified Commit f7d2b749 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by GitHub
Browse files

Merge pull request #46 from kaushikcfd/master

Fix minor typo: __module -> __module__
parents ace99c38 cda66bad
No related branches found
No related tags found
No related merge requests found
Pipeline #85440 passed
...@@ -192,7 +192,7 @@ class MovedFunctionDeprecationWrapper: ...@@ -192,7 +192,7 @@ class MovedFunctionDeprecationWrapper:
def __call__(self, *args, **kwargs): def __call__(self, *args, **kwargs):
from warnings import warn from warnings import warn
warn(f"This function is deprecated and will go away in {self.deadline}. " warn(f"This function is deprecated and will go away in {self.deadline}. "
f"Use {self.f.__module}.{self.f.__name__} instead.", f"Use {self.f.__module__}.{self.f.__name__} instead.",
DeprecationWarning, stacklevel=2) DeprecationWarning, stacklevel=2)
return self.f(*args, **kwargs) return self.f(*args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment