parent
0b11fae5a7
commit
b0bf616a46
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57801
11 changed files with 154 additions and 0 deletions
14
lang/python-devel/files/patch-Lib:urllib.py
Normal file
14
lang/python-devel/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python/files/patch-Lib:urllib.py
Normal file
14
lang/python/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python22/files/patch-Lib:urllib.py
Normal file
14
lang/python22/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python23/files/patch-Lib:urllib.py
Normal file
14
lang/python23/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python24/files/patch-Lib:urllib.py
Normal file
14
lang/python24/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python25/files/patch-Lib:urllib.py
Normal file
14
lang/python25/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python26/files/patch-Lib:urllib.py
Normal file
14
lang/python26/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python27/files/patch-Lib:urllib.py
Normal file
14
lang/python27/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python30/files/patch-Lib:urllib.py
Normal file
14
lang/python30/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python31/files/patch-Lib:urllib.py
Normal file
14
lang/python31/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
14
lang/python32/files/patch-Lib:urllib.py
Normal file
14
lang/python32/files/patch-Lib:urllib.py
Normal file
|
@ -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]
|
Loading…
Reference in a new issue