summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2005-01-07 12:58:03 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2005-01-07 12:58:03 (GMT)
commit91199cf81d87e73d7094ec0376b6a85b64904dfa (patch)
treed9fa6e58a63a85ea3cb96c12ff671829b7c1560c /Mac/Tools
parent105a2e236cc2348aee37138f9b00d1dedb2e33aa (diff)
downloadcpython-91199cf81d87e73d7094ec0376b6a85b64904dfa.zip
cpython-91199cf81d87e73d7094ec0376b6a85b64904dfa.tar.gz
cpython-91199cf81d87e73d7094ec0376b6a85b64904dfa.tar.bz2
Backport of 1.20:
Workaround for the fact that urllib2 doesn't default to "file:" urls.
Diffstat (limited to 'Mac/Tools')
-rwxr-xr-xMac/Tools/IDE/PackageManager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py
index 0041a17..5b0cec2 100755
--- a/Mac/Tools/IDE/PackageManager.py
+++ b/Mac/Tools/IDE/PackageManager.py
@@ -181,6 +181,8 @@ class PackageManagerMain(Wapplication.Application):
filename = EasyDialogs.AskFileForOpen(typeList=("TEXT",))
if filename:
filename = urllib.pathname2url(filename)
+ if filename[:5] != 'file:':
+ filename = 'file:' + filename
self.opendoc(filename)
def domenu_openURL(self, *args):