imghdr.what(): check for not h'.  This lets
you do:
    imghdr.what(None, '')
And still go down the
diff --git a/Lib/imghdr.py b/Lib/imghdr.py
index 10cc085..f3137c5 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: