##// END OF EJS Templates
byterange: fix import error...
Martin Geisler -
r8378:59acf649 default
parent child Browse files
Show More
@@ -23,7 +23,7 b' import os'
23 import stat
23 import stat
24 import urllib
24 import urllib
25 import urllib2
25 import urllib2
26 import email.utils
26 import email.Utils
27
27
28 try:
28 try:
29 from cStringIO import StringIO
29 from cStringIO import StringIO
@@ -214,7 +214,7 b' class FileRangeHandler(urllib2.FileHandl'
214 localfile = urllib.url2pathname(file)
214 localfile = urllib.url2pathname(file)
215 stats = os.stat(localfile)
215 stats = os.stat(localfile)
216 size = stats[stat.ST_SIZE]
216 size = stats[stat.ST_SIZE]
217 modified = email.utils.formatdate(stats[stat.ST_MTIME])
217 modified = email.Utils.formatdate(stats[stat.ST_MTIME])
218 mtype = mimetypes.guess_type(file)[0]
218 mtype = mimetypes.guess_type(file)[0]
219 if host:
219 if host:
220 host, port = urllib.splitport(host)
220 host, port = urllib.splitport(host)
General Comments 0
You need to be logged in to leave comments. Login now