diff options
author | Georg Brandl <georg@python.org> | 2007-01-22 19:40:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-01-22 19:40:21 (GMT) |
commit | 5a096e1b100603f5537eca5124be17abacf17743 (patch) | |
tree | 10a2dbb602c07dff33dfbf19de1a7c91670175ef /Lib/urllib.py | |
parent | dd7b0525e902ee12a612611ea082e12f5999c823 (diff) | |
download | cpython-5a096e1b100603f5537eca5124be17abacf17743.zip cpython-5a096e1b100603f5537eca5124be17abacf17743.tar.gz cpython-5a096e1b100603f5537eca5124be17abacf17743.tar.bz2 |
Use new email module names (#1637162, #1637159, #1637157).
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r-- | Lib/urllib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 4a1fa64..834a42f 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -452,7 +452,7 @@ class URLopener: def open_local_file(self, url): """Use local file.""" - import mimetypes, mimetools, email.Utils + import mimetypes, mimetools, email.utils try: from cStringIO import StringIO except ImportError: @@ -464,7 +464,7 @@ class URLopener: except OSError, e: raise IOError(e.errno, e.strerror, e.filename) size = stats.st_size - modified = email.Utils.formatdate(stats.st_mtime, usegmt=True) + modified = email.utils.formatdate(stats.st_mtime, usegmt=True) mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO( 'Content-Type: %s\nContent-Length: %d\nLast-modified: %s\n' % |