mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-40759: Deprecate the symbol module (GH-20364)
Automerge-Triggered-By: @pablogsal
(cherry picked from commit cf88871d6a
)
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
This commit is contained in:
parent
cdb015b7ed
commit
96d91071c0
4 changed files with 19 additions and 3 deletions
|
@ -11,6 +11,15 @@
|
|||
#
|
||||
# make regen-symbol
|
||||
|
||||
import warnings
|
||||
|
||||
warnings.warn(
|
||||
"The symbol module is deprecated and will be removed "
|
||||
"in future versions of Python",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
#--start constants--
|
||||
single_input = 256
|
||||
file_input = 257
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue