From d29e2a23ef9060bb7c770efb06643611fa44fcad Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 2 May 2017 19:09:21 +0200 Subject: [PATCH] DEPR: correct deprecation message for datetools --- pandas/util/depr_module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/util/depr_module.py b/pandas/util/depr_module.py index b438c91d980af..9c648b76fdad1 100644 --- a/pandas/util/depr_module.py +++ b/pandas/util/depr_module.py @@ -83,8 +83,7 @@ def __getattr__(self, name): FutureWarning, stacklevel=2) else: if deprmodto is None: - deprmodto = "{modname}.{name}".format( - modname=obj.__module__, name=name) + deprmodto = obj.__module__ # The object is actually located in another module. warnings.warn( "{deprmod}.{name} is deprecated. Please use "