From cda66badd3f09b0d889ac34d5b9a8e65b1f004e2 Mon Sep 17 00:00:00 2001 From: Kaushik Kulkarni <kaushikcfd@gmail.com> Date: Sat, 17 Oct 2020 15:12:29 -0500 Subject: [PATCH] typo: __module -> __module__ --- pytools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytools/__init__.py b/pytools/__init__.py index 0dc6622..893773e 100644 --- a/pytools/__init__.py +++ b/pytools/__init__.py @@ -192,7 +192,7 @@ class MovedFunctionDeprecationWrapper: def __call__(self, *args, **kwargs): from warnings import warn 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) return self.f(*args, **kwargs) -- GitLab