# HG changeset patch # User Martin Geisler # Date 2009-05-14 11:20:04 # Node ID 59acf64995d253f5a10535977f42d2e2c8a8c881 # Parent 29f4f0d66cd53fad7493e5e3b90017024fbbcb2a byterange: fix import error We must import the module as email.Utils on case-sensitive filesystems. diff --git a/mercurial/byterange.py b/mercurial/byterange.py --- a/mercurial/byterange.py +++ b/mercurial/byterange.py @@ -23,7 +23,7 @@ import os import stat import urllib import urllib2 -import email.utils +import email.Utils try: from cStringIO import StringIO @@ -214,7 +214,7 @@ class FileRangeHandler(urllib2.FileHandl 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)