Changed condition to use DEBUG as a boolean

This commit is contained in:
Andrew Murray 2019-10-03 20:23:49 +10:00
parent 59153f5e12
commit 1e6eac40fc

View File

@ -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)