summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2009-12-31 13:27:41 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2009-12-31 13:27:41 (GMT)
commit763f1e8d320aeb0c2f08d45625c49c852f2457a1 (patch)
treed1d0053b7a60415a57876a61270debbcfbb1c518 /Lib
parent6d6b53cab8099c07aab70887aeef238b0c8eb94f (diff)
downloadcpython-763f1e8d320aeb0c2f08d45625c49c852f2457a1.zip
cpython-763f1e8d320aeb0c2f08d45625c49c852f2457a1.tar.gz
cpython-763f1e8d320aeb0c2f08d45625c49c852f2457a1.tar.bz2
indentation and further alignment with py3k
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_zipfile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
index e41c0ac..27591b7 100644
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -562,10 +562,10 @@ class PyZipFileTests(unittest.TestCase):
os.mkdir(TESTFN2)
try:
with open(os.path.join(TESTFN2, "mod1.py"), "w") as fp:
- fp.write("print 42\n")
+ fp.write("print(42)\n")
with open(os.path.join(TESTFN2, "mod2.py"), "w") as fp:
- fp.write("print 42 * 42\n")
+ fp.write("print(42 * 42)\n")
with open(os.path.join(TESTFN2, "mod2.txt"), "w") as fp:
fp.write("bla bla bla\n")
@@ -869,7 +869,7 @@ class TestsWithRandomBinaryFiles(unittest.TestCase):
def setUp(self):
datacount = randint(16, 64)*1024 + randint(1, 1024)
self.data = ''.join(struct.pack('<f', random()*randint(-1000, 1000))
- for i in xrange(datacount))
+ for i in xrange(datacount))
# Make a source file with some lines
with open(TESTFN, "wb") as fp: