mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Add deprecation warning to modules deprecated since 2000.
This commit is contained in:
parent
b56230b30d
commit
b86a54f395
2 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
__all__ = ["send_selector","send_query"]
|
||||
|
||||
import warnings
|
||||
warnings.warn("the gopherlib module is deprecated", DeprecationWarning)
|
||||
|
||||
# Default selector, host and port
|
||||
DEF_SELECTOR = '1/'
|
||||
DEF_HOST = 'gopher.micro.umn.edu'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue