From be201bf4f3f377b64588876f3e7914a7e56faba6 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 12 Apr 2014 12:43:24 +0300 Subject: [PATCH] Undo cleanup reversal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Just pointing out that this bit is actually reversing a recent cleanup in Pillow. See commit 923018d and PR #474. I guess that cleanup was merged into Pillow after I did my merge from Pillow to PL’s fork." https://github.com/python-imaging/Pillow/pull/618#discussion_r11559186 --- PIL/OleFileIO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/OleFileIO.py b/PIL/OleFileIO.py index c99300dc1..8a3c77be4 100644 --- a/PIL/OleFileIO.py +++ b/PIL/OleFileIO.py @@ -1033,7 +1033,7 @@ class OleFileIO: if entry[1:2] == "Image": fin = ole.openstream(entry) fout = open(entry[0:1], "wb") - while 1: + while True: s = fin.read(8192) if not s: break