From 24f7cad6ca3140bf0dada04261cb372be658832e Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 18 Feb 2006 04:00:23 +0000 Subject: Changed the new deprecation warning to show the code _importing_ gopherlib instead of gopherlib's call to warnings.warn. --- Lib/gopherlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/gopherlib.py b/Lib/gopherlib.py index 226eda6..d789161 100644 --- a/Lib/gopherlib.py +++ b/Lib/gopherlib.py @@ -3,7 +3,8 @@ __all__ = ["send_selector","send_query"] import warnings -warnings.warn("the gopherlib module is deprecated", DeprecationWarning) +warnings.warn("the gopherlib module is deprecated", DeprecationWarning, + stacklevel=2) # Default selector, host and port DEF_SELECTOR = '1/' -- cgit v0.12