summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/imghdr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imghdr.py b/Lib/imghdr.py
index 10cc08596e..f3137c5afb 100644
--- a/Lib/imghdr.py
+++ b/Lib/imghdr.py
@@ -6,7 +6,7 @@
#-------------------------#
def what(filename, h=None):
- if not h:
+ if h is None:
f = open(filename, 'r')
h = f.read(32)
else: