Changed the new deprecation warning to show the

code _importing_ gopherlib instead of gopherlib's
call to warnings.warn.
This commit is contained in:
Tim Peters 2006-02-18 04:00:23 +00:00
parent b6be87f9b0
commit 24f7cad6ca
1 changed files with 2 additions and 1 deletions

View File

@ -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/'