Commits

Anonymous committed a324df6

Fixed a bug that causes problems for Python 2.4

  • Participants
  • Parent commits f910c13

Comments (0)

Files changed (1)

 """
 import re
 import inspect
-from email.utils import parsedate_tz, mktime_tz
+try:
+    from email.utils import parsedate_tz, mktime_tz
+except ImportError:
+    from email.Utils import parsedate_tz, mktime_tz
 from cStringIO import StringIO
 from tempfile import TemporaryFile
 from urllib2 import parse_http_list as _parse_list_header