Author: Ronan Lamy <[email protected]>
Branch: __debug__-optimize
Changeset: r97080:d2c9896c2574
Date: 2019-08-06 16:55 +0100
http://bitbucket.org/pypy/pypy/changeset/d2c9896c2574/

Log:    'True', 'False' and 'None' are proper keywords now, not reserved
        names

diff --git a/pypy/interpreter/astcompiler/optimize.py 
b/pypy/interpreter/astcompiler/optimize.py
--- a/pypy/interpreter/astcompiler/optimize.py
+++ b/pypy/interpreter/astcompiler/optimize.py
@@ -273,12 +273,6 @@
         space = self.space
         iden = name.id
         w_const = None
-        if iden == "None":
-            w_const = space.w_None
-        elif iden == "True":
-            w_const = space.w_True
-        elif iden == "False":
-            w_const = space.w_False
         if w_const is not None:
             return ast.NameConstant(w_const, name.lineno, name.col_offset)
         return name
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to