]> granicus.if.org Git - python/commitdiff
Fix a place where it's pretty clear that a binary open mode was intended.
authorGuido van Rossum <guido@python.org>
Mon, 9 Apr 2007 00:00:23 +0000 (00:00 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 9 Apr 2007 00:00:23 +0000 (00:00 +0000)
(The new I/O library revealed the problem.)

Lib/test/test_bz2.py

index 518005aadaf41ee02ea2ae0f0053c6eb22ccd0be..635c828d55e3500adcd5cfb650eca10f2ed14090 100644 (file)
@@ -243,7 +243,7 @@ class BZ2FileTest(BaseTest):
         self.createTempFile()
         bz2f = BZ2File(self.filename, "U")
         bz2f.close()
-        f = open(self.filename)
+        f = open(self.filename, "rb")
         f.seek(0, 2)
         self.assertEqual(f.tell(), len(self.DATA))
         f.close()