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:
Miss Islington (bot) 2020-05-31 15:23:29 -07:00 committed by GitHub
parent cdb015b7ed
commit 96d91071c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 3 deletions

View file

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