Commits

Amaury Forgeot d'Arc committed a4733ac

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

  • Participants
  • Parent commits 53ce3af
  • Branches py3k

Comments (0)

Files changed (2)

lib_pypy/_sha1.py

 
     # 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.

pypy/interpreter/astcompiler/astbuilder.py

             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":