diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-02-18 04:00:23 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-02-18 04:00:23 (GMT) |
commit | 24f7cad6ca3140bf0dada04261cb372be658832e (patch) | |
tree | 8a8159420cda3ffa9c0af54e62c969912afbf2cc | |
parent | b6be87f9b035b4071cd4f2a968fbff2d7df8b4a5 (diff) | |
download | cpython-24f7cad6ca3140bf0dada04261cb372be658832e.zip cpython-24f7cad6ca3140bf0dada04261cb372be658832e.tar.gz cpython-24f7cad6ca3140bf0dada04261cb372be658832e.tar.bz2 |
Changed the new deprecation warning to show the
code _importing_ gopherlib instead of gopherlib's
call to warnings.warn.
-rw-r--r-- | Lib/gopherlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
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/' |