Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r58393:a4733acc6b11
Date: 2012-10-24 00:55 +0200
http://bitbucket.org/pypy/pypy/changeset/a4733acc6b11/

Log:    Fix syntax error when importing hashlib, or random, or tempfile.

diff --git a/lib_pypy/_sha1.py b/lib_pypy/_sha1.py
--- a/lib_pypy/_sha1.py
+++ b/lib_pypy/_sha1.py
@@ -43,7 +43,7 @@
 
     # Strip off leading zeros.
     for i in range(len(s)):
-        if s[i] <> '\000':
+        if s[i] != '\000':
             break
     else:
         # Only happens when n == 0.
diff --git a/pypy/interpreter/astcompiler/astbuilder.py 
b/pypy/interpreter/astcompiler/astbuilder.py
--- a/pypy/interpreter/astcompiler/astbuilder.py
+++ b/pypy/interpreter/astcompiler/astbuilder.py
@@ -855,9 +855,9 @@
             elif comp_type == tokens.NOTEQUAL:
                 flufl = self.compile_info.flags & 
consts.CO_FUTURE_BARRY_AS_BDFL
                 if flufl and comp_node.value == '!=':
-                    self.error('message', comp_node)
+                    self.error('invalid comparison', comp_node)
                 elif not flufl and comp_node.value == '<>':
-                    self.error('message', comp_node)
+                    self.error('invalid comparison', comp_node)
                 return ast.NotEq
             elif comp_type == tokens.NAME:
                 if comp_node.value == "is":
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to