Author: Brian Kearns <[email protected]>
Branch:
Changeset: r70954:ba11a9b9aab5
Date: 2014-04-24 21:03 -0400
http://bitbucket.org/pypy/pypy/changeset/ba11a9b9aab5/
Log: reduce diff with upstream
diff --git a/lib-python/2.7/test/test_file2k.py
b/lib-python/2.7/test/test_file2k.py
--- a/lib-python/2.7/test/test_file2k.py
+++ b/lib-python/2.7/test/test_file2k.py
@@ -479,11 +479,10 @@
def _create_file(self):
if self.use_buffering:
- f = open(self.filename, "w+", buffering=1024*16)
+ self.f = open(self.filename, "w+", buffering=1024*16)
else:
- f = open(self.filename, "w+")
- self.f = f
- self.all_files.append(f)
+ self.f = open(self.filename, "w+")
+ self.all_files.append(self.f)
oldf = self.all_files.pop(0)
if oldf is not None:
oldf.close()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit