From 1e6eac40fc8dc680f2e3eb45f289aacea2f68f12 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 3 Oct 2019 20:23:49 +1000 Subject: [PATCH] Changed condition to use DEBUG as a boolean --- src/PIL/TiffImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index a927cd3ed..e03d5b105 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -854,7 +854,7 @@ class ImageFileDirectory_v2(MutableMapping): # pass 2: write entries to file for tag, typ, count, value, data in entries: - if DEBUG > 1: + if DEBUG: print(tag, typ, count, repr(value), repr(data)) result += self._pack("HHL4s", tag, typ, count, value)