Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r70095:c6058cfbd0c1
Date: 2014-03-19 10:12 -0700
http://bitbucket.org/pypy/pypy/changeset/c6058cfbd0c1/
Log: print as a statement is bad (py3k compat)
diff --git a/pypy/module/marshal/test/test_marshal.py
b/pypy/module/marshal/test/test_marshal.py
--- a/pypy/module/marshal/test/test_marshal.py
+++ b/pypy/module/marshal/test/test_marshal.py
@@ -11,7 +11,7 @@
def w_marshal_check(self, case):
import marshal, StringIO
s = marshal.dumps(case)
- print repr(s)
+ print(repr(s))
x = marshal.loads(s)
assert x == case and type(x) is type(case)
f = StringIO.StringIO()
@@ -173,7 +173,7 @@
import marshal
types = (float, complex, int, long, tuple, list, dict, set, frozenset)
for cls in types:
- print cls
+ print(cls)
class subtype(cls):
pass
exc = raises(ValueError, marshal.dumps, subtype)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit