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

you do:
    imghdr.what(None, '')
And still go down the
This commit is contained in:
Guido van Rossum 1996-08-22 21:20:46 +00:00
parent bf57ed5f95
commit f813f56bcd
1 changed files with 1 additions and 1 deletions

View File

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