aboutsummaryrefslogtreecommitdiff
path: root/lang/python25
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2002-04-17 11:57:49 +0000
committerThomas Gellekum <tg@FreeBSD.org>2002-04-17 11:57:49 +0000
commitb0bf616a465401d6cbdc602d28655176ca4665fc (patch)
tree5b646a1e43ef709978532ff80a61d47c47d99595 /lang/python25
parent0b11fae5a754f883d589fd7a7b178ac68849b1f6 (diff)
downloadports-b0bf616a465401d6cbdc602d28655176ca4665fc.tar.gz
ports-b0bf616a465401d6cbdc602d28655176ca4665fc.zip
Notes
Diffstat (limited to 'lang/python25')
-rw-r--r--lang/python25/files/patch-Lib:urllib.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/python25/files/patch-Lib:urllib.py b/lang/python25/files/patch-Lib:urllib.py
new file mode 100644
index 000000000000..63830a9475c6
--- /dev/null
+++ b/lang/python25/files/patch-Lib:urllib.py
@@ -0,0 +1,14 @@
+--- Lib/urllib.py.orig Wed Apr 10 08:19:21 2002
++++ Lib/urllib.py Wed Apr 10 08:25:58 2002
+@@ -409,7 +409,10 @@
+ import mimetypes, mimetools, rfc822, StringIO
+ host, file = splithost(url)
+ localname = url2pathname(file)
+- stats = os.stat(localname)
++ try:
++ stats = os.stat(localname)
++ except OSError, e:
++ raise IOError(e.errno, e.strerror, e.filename)
+ size = stats[stat.ST_SIZE]
+ modified = rfc822.formatdate(stats[stat.ST_MTIME])
+ mtype = mimetypes.guess_type(url)[0]