[pypy-svn] r69279 - pypy/branch/faster-raise/pypy/module/exceptions
fijal at codespeak.net
fijal at codespeak.net
Sat Nov 14 14:08:05 CET 2009
Author: fijal
Date: Sat Nov 14 14:08:05 2009
New Revision: 69279
Modified:
pypy/branch/faster-raise/pypy/module/exceptions/interp_exceptions.py
Log:
Add strange attribute, nobody ever sets it
Modified: pypy/branch/faster-raise/pypy/module/exceptions/interp_exceptions.py
==============================================================================
--- pypy/branch/faster-raise/pypy/module/exceptions/interp_exceptions.py (original)
+++ pypy/branch/faster-raise/pypy/module/exceptions/interp_exceptions.py Sat Nov 14 14:08:05 2009
@@ -436,15 +436,14 @@
self.w_lineno = space.w_None
self.w_offset = space.w_None
self.w_text = space.w_None
- self.w_msg = space.w_None
+ self.w_msg = space.wrap('')
+ self.w_print_file_and_line = space.w_None # what's that?
W_BaseException.__init__(self, space)
def descr_init(self, space, args_w):
# that's not a self.w_message!!!
if len(args_w) > 0:
self.w_msg = args_w[0]
- else:
- self.w_msg = space.wrap('')
if len(args_w) == 2:
values_w = space.viewiterable(args_w[1], 4)
self.w_filename = values_w[0]
@@ -489,6 +488,8 @@
lineno = readwrite_attrproperty_w('w_lineno', W_SyntaxError),
offset = readwrite_attrproperty_w('w_offset', W_SyntaxError),
text = readwrite_attrproperty_w('w_text', W_SyntaxError),
+ print_file_and_line = readwrite_attrproperty_w('w_print_file_and_line',
+ W_SyntaxError),
)
W_FutureWarning = _new_exception('FutureWarning', W_Warning,
More information about the Pypy-commit
mailing list