Commit 24f7cad6 authored by Tim Peters's avatar Tim Peters

Changed the new deprecation warning to show the

code _importing_ gopherlib instead of gopherlib's
call to warnings.warn.
parent b6be87f9
......@@ -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/'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment