[pypy-svn] r5124 - pypy/trunk/src/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Wed Jun 16 18:16:54 CEST 2004
Author: arigo
Date: Wed Jun 16 18:16:53 2004
New Revision: 5124
Modified:
pypy/trunk/src/pypy/interpreter/pyopcode.py
Log:
Added CPython's strange 'print >> None' exception.
Modified: pypy/trunk/src/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/pyopcode.py (original)
+++ pypy/trunk/src/pypy/interpreter/pyopcode.py Wed Jun 16 18:16:53 2004
@@ -824,6 +824,8 @@
raise RuntimeError("lost sys.stdout")
def app_print_item_to(x, stream):
+ if stream is None:
+ return
if file_softspace(stream, False):
stream.write(" ")
stream.write(str(x))
@@ -835,6 +837,8 @@
file_softspace(stream, True)
def app_print_newline_to(stream):
+ if stream is None:
+ return
stream.write("\n")
file_softspace(stream, False)
More information about the Pypy-commit
mailing list