diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-05-31 22:23:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-31 22:23:29 (GMT) |
commit | 96d91071c0279fe3b10f97b581970a85ccba9ebe (patch) | |
tree | 7b41f5ae06efee6abcfa4fef86636f46272dfb24 /Lib | |
parent | cdb015b7ed58ee2babf552001374c278219854e1 (diff) | |
download | cpython-96d91071c0279fe3b10f97b581970a85ccba9ebe.zip cpython-96d91071c0279fe3b10f97b581970a85ccba9ebe.tar.gz cpython-96d91071c0279fe3b10f97b581970a85ccba9ebe.tar.bz2 |
bpo-40759: Deprecate the symbol module (GH-20364)
Automerge-Triggered-By: @pablogsal
(cherry picked from commit cf88871d6a9c12e7b7e5f4d65abc2ec6e2fe952e)
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/symbol.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/symbol.py b/Lib/symbol.py index 36e0eec..aaac8c9 100644 --- a/Lib/symbol.py +++ b/Lib/symbol.py @@ -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 |