Commit f813f56b authored by Guido van Rossum's avatar Guido van Rossum

imghdr.what(): check for not h'. This lets

you do:
    imghdr.what(None, '')
And still go down the
parent bf57ed5f
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment