* calendar.py: all libC functionality now moved to built-in time module
* imghdr.py: added jpeg recognition
* torgb.py: added jpeg conversion
* tzparse.py: use functions from time instead of calendar
* whatsound.py: add /ufs/guido/biin/sgi to $PATH when calling 'whatsound'
diff --git a/Lib/imghdr.py b/Lib/imghdr.py
index 063bfe8..62518b5 100644
--- a/Lib/imghdr.py
+++ b/Lib/imghdr.py
@@ -81,6 +81,12 @@
tests.append(test_xbm)
+def test_jpeg(h, f):
+ # JPEG data in JFIF format
+ if h[6:10] == 'JFIF':
+ return 'jpeg'
+
+tests.append(test_jpeg)
#--------------------#
# Small test program #