mirror of https://github.com/python/cpython
Changed the new deprecation warning to show the
code _importing_ gopherlib instead of gopherlib's call to warnings.warn.
This commit is contained in:
parent
b6be87f9b0
commit
24f7cad6ca
|
@ -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/'
|
||||
|
|
Loading…
Reference in New Issue