diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-13 18:38:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 18:38:55 (GMT) |
commit | a3416c13b51af25675e175d4ffe07d8b925e7dbf (patch) | |
tree | 2910ac8c9b29bd99ad17b58fd9f8d9bd6a06214b /Lib/codeop.py | |
parent | afff51fc09993dff1693aacb440221314b163409 (diff) | |
download | cpython-a3416c13b51af25675e175d4ffe07d8b925e7dbf.zip cpython-a3416c13b51af25675e175d4ffe07d8b925e7dbf.tar.gz cpython-a3416c13b51af25675e175d4ffe07d8b925e7dbf.tar.bz2 |
[3.9] bpo-41520: Fix second codeop regression (GH-21848)
Fix the repression introduced by the initial regression fix.
(cherry picked from commit c818b15fa59039de67022c29085d439fa5d3ef95)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit f24430f1542ea2768793b48704ae2d4e241892ae)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/codeop.py')
-rw-r--r-- | Lib/codeop.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/codeop.py b/Lib/codeop.py index 9704387..04ca6b9 100644 --- a/Lib/codeop.py +++ b/Lib/codeop.py @@ -85,9 +85,9 @@ def _maybe_compile(compiler, source, filename, symbol): pass # Catch syntax warnings after the first compile - # to emit SyntaxWarning at most once. + # to emit warnings (SyntaxWarning, DeprecationWarning) at most once. with warnings.catch_warnings(): - warnings.simplefilter("error", SyntaxWarning) + warnings.simplefilter("error") try: code1 = compiler(source + "\n", filename, symbol) |