[pypy-svn] r8544 - pypy/dist/pypy/appspace
tismer at codespeak.net
tismer at codespeak.net
Tue Jan 25 11:47:37 CET 2005
Author: tismer
Date: Tue Jan 25 11:47:37 2005
New Revision: 8544
Modified:
pypy/dist/pypy/appspace/exceptions.py
Log:
some basic stuff, temporary
Modified: pypy/dist/pypy/appspace/exceptions.py
==============================================================================
--- pypy/dist/pypy/appspace/exceptions.py (original)
+++ pypy/dist/pypy/appspace/exceptions.py Tue Jan 25 11:47:37 2005
@@ -1,3 +1,7 @@
+# XXX
+# This file is almost auto-generated now and yet
+# not ableto adopt changes by hand. Please don't edit now.
+
class Exception:
"""Common base class for all exceptions."""
@@ -7,7 +11,7 @@
# auto-generated code, please check carefully!
def __init__(self, *args):
- pass
+ self.args = args
# auto-generated code, please check carefully!
# please implement Exception.__str__
@@ -32,9 +36,9 @@
"""Unicode translation error."""
# auto-generated code, please check carefully!
- def __init__(self, *args):
- pass
-
+ ##def __init__(self, *args):
+ ## pass
+ ## completely wrong
# auto-generated code, please check carefully!
# please implement UnicodeTranslateError.__str__
# instantiation of UnicodeTranslateError works with 1 solutions
@@ -65,9 +69,9 @@
"""Base class for I/O related errors."""
# auto-generated code, please check carefully!
- def __init__(self, *args):
- pass
-
+ ##def __init__(self, *args):
+ ## pass
+ ## completely wrong
# auto-generated code, please check carefully!
# please implement EnvironmentError.__str__
# instantiation of EnvironmentError works with 13119 solutions
@@ -82,9 +86,9 @@
"""Unicode encoding error."""
# auto-generated code, please check carefully!
- def __init__(self, *args):
- pass
-
+ ##def __init__(self, *args):
+ ## pass
+ ## completely wrong
# auto-generated code, please check carefully!
# please implement UnicodeEncodeError.__str__
# instantiation of UnicodeEncodeError works with 1 solutions
@@ -117,9 +121,9 @@
text = None
# auto-generated code, please check carefully!
- def __init__(self, *args):
- pass
-
+ ##def __init__(self, *args):
+ ## pass
+ ## completely wrong
# auto-generated code, please check carefully!
# please implement SyntaxError.__str__
# instantiation of SyntaxError works with 13116 solutions
@@ -132,7 +136,13 @@
# auto-generated code, please check carefully!
def __init__(self, *args):
- pass
+ self.args = args
+ if len(args) == 0:
+ self.code = None
+ elif len(args) == 1:
+ self.code = args[0]
+ else:
+ self.code = args
class EOFError(StandardError):
"""Read beyond end of file."""
@@ -159,9 +169,9 @@
"""Unicode decoding error."""
# auto-generated code, please check carefully!
- def __init__(self, *args):
- pass
-
+ ##def __init__(self, *args):
+ ## pass
+ ## completely wrong
# auto-generated code, please check carefully!
# please implement UnicodeDecodeError.__str__
# instantiation of UnicodeDecodeError works with 1 solutions
More information about the Pypy-commit
mailing list