diff options
| author | Zsolt Dollenstein <zsol.zsol@gmail.com> | 2019-10-24 06:19:07 (GMT) |
|---|---|---|
| committer | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-24 06:19:07 (GMT) |
| commit | 96b06aefe23521b61e4e9cdd44f5d30b00c7eb95 (patch) | |
| tree | cb3193c53116b83c483afae524b4c1015bf4e2af /Lib/lib2to3/fixes/fix_intern.py | |
| parent | 3bbb6db545eff73ba4031bd9b8f2ef71b84c906e (diff) | |
| download | cpython-96b06aefe23521b61e4e9cdd44f5d30b00c7eb95.zip cpython-96b06aefe23521b61e4e9cdd44f5d30b00c7eb95.tar.gz cpython-96b06aefe23521b61e4e9cdd44f5d30b00c7eb95.tar.bz2 | |
bpo-33348: parse expressions after * and ** in lib2to3 (GH-6586)
These are valid even in python 2.7
https://bugs.python.org/issue33348
Automerge-Triggered-By: @gpshead
Diffstat (limited to 'Lib/lib2to3/fixes/fix_intern.py')
| -rw-r--r-- | Lib/lib2to3/fixes/fix_intern.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/lib2to3/fixes/fix_intern.py b/Lib/lib2to3/fixes/fix_intern.py index a852330..d752843 100644 --- a/Lib/lib2to3/fixes/fix_intern.py +++ b/Lib/lib2to3/fixes/fix_intern.py @@ -30,10 +30,8 @@ class FixIntern(fixer_base.BaseFix): # PATTERN above but I don't know how to do it so... obj = results['obj'] if obj: - if obj.type == self.syms.star_expr: - return # Make no change. if (obj.type == self.syms.argument and - obj.children[0].value == '**'): + obj.children[0].value in {'**', '*'}): return # Make no change. names = ('sys', 'intern') new = ImportAndCall(node, results, names) |
