diff -r 1469c4fde8cd Lib/imghdr.py --- a/Lib/imghdr.py Sat Jan 18 18:31:41 2014 +0200 +++ b/Lib/imghdr.py Sat Jan 18 19:30:54 2014 +0100 @@ -112,6 +112,12 @@ tests.append(test_bmp) +def test_exr(h,f): + if h[0]==0x76 and h[1]==0x2f and h[2]==0x31 and h[3]==0x01: + return 'exr' + +tests.append(test_exr) + #--------------------# # Small test program # #--------------------#