diff --git a/Lib/imghdr.py b/Lib/imghdr.py index 10cc08596ec..f3137c5afb0 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: