summaryrefslogtreecommitdiff
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-01-22 19:40:21 +0000
committerGeorg Brandl <georg@python.org>2007-01-22 19:40:21 +0000
commit5a096e1b100603f5537eca5124be17abacf17743 (patch)
tree10a2dbb602c07dff33dfbf19de1a7c91670175ef /Lib/urllib2.py
parentdd7b0525e902ee12a612611ea082e12f5999c823 (diff)
downloadcpython-git-5a096e1b100603f5537eca5124be17abacf17743.tar.gz
Use new email module names (#1637162, #1637159, #1637157).
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 1ab5c61454..d0d4073a31 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -1209,14 +1209,14 @@ class FileHandler(BaseHandler):
# not entirely sure what the rules are here
def open_local_file(self, req):
- import email.Utils
+ import email.utils
import mimetypes
host = req.get_host()
file = req.get_selector()
localfile = url2pathname(file)
stats = os.stat(localfile)
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(file)[0]
headers = mimetools.Message(StringIO(
'Content-type: %s\nContent-length: %d\nLast-modified: %s\n' %