# HG changeset patch # User Martin Geisler # Date 1242300004 -7200 # Node ID 59acf64995d253f5a10535977f42d2e2c8a8c881 # Parent 29f4f0d66cd53fad7493e5e3b90017024fbbcb2a byterange: fix import error We must import the module as email.Utils on case-sensitive filesystems. diff -r 29f4f0d66cd5 -r 59acf64995d2 mercurial/byterange.py --- a/mercurial/byterange.py Wed May 13 15:03:31 2009 -0400 +++ b/mercurial/byterange.py Thu May 14 13:20:04 2009 +0200 @@ -23,7 +23,7 @@ import stat import urllib import urllib2 -import email.utils +import email.Utils try: from cStringIO import StringIO @@ -214,7 +214,7 @@ localfile = urllib.url2pathname(file) stats = os.stat(localfile) size = stats[stat.ST_SIZE] - modified = email.utils.formatdate(stats[stat.ST_MTIME]) + modified = email.Utils.formatdate(stats[stat.ST_MTIME]) mtype = mimetypes.guess_type(file)[0] if host: host, port = urllib.splitport(host)