[pypy-svn] r18159 - pypy/dist/pypy/interpreter/pyparser

ac at codespeak.net ac at codespeak.net
Tue Oct 4 19:31:41 CEST 2005


Author: ac
Date: Tue Oct  4 19:31:41 2005
New Revision: 18159

Modified:
   pypy/dist/pypy/interpreter/pyparser/error.py
Log:
Get correct default.

Modified: pypy/dist/pypy/interpreter/pyparser/error.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/error.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/error.py	Tue Oct  4 19:31:41 2005
@@ -3,7 +3,7 @@
 class SyntaxError(Exception):
     """Base class for exceptions raised by the parser."""
 
-    def __init__(self, msg, lineno=0, offset=0, text="", filename=""):
+    def __init__(self, msg, lineno=0, offset=0, text=None, filename=None):
         self.msg = msg
         self.lineno = lineno
         self.offset = offset



More information about the Pypy-commit mailing list