Commits

Vincent Legoll  committed 0c0dd42

Fix for the 'trailing comma' Exception message.
Use the same as cpython2.7

  • Participants
  • Parent commits b1d50c5

Comments (0)

Files changed (1)

File pypy/interpreter/astcompiler/astbuilder.py

             elif after_import_type == syms.import_as_names:
                 names_node = import_node.children[i]
                 if len(names_node.children) % 2 == 0:
-                    self.error("trailing comma is only allowed with "
-                               "surronding parenthesis", names_node)
+                    self.error("trailing comma not allowed without "
+                               "surrounding parentheses", names_node)
             else:
                 raise AssertionError("unknown import node")
             if star_import: