projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28fc37
)
Workaround for bug #644243 (which is actually an Apple bug, I think): URLs
author
Jack Jansen
<jack.jansen@cwi.nl>
Tue, 25 Feb 2003 13:34:22 +0000
(13:34 +0000)
committer
Jack Jansen
<jack.jansen@cwi.nl>
Tue, 25 Feb 2003 13:34:22 +0000
(13:34 +0000)
of the form file:/path/to/file don't work whereas file:///path/to/file
works fine. We convert the former to the latter.
Lib/plat-mac/ic.py
patch
|
blob
|
history
diff --git
a/Lib/plat-mac/ic.py
b/Lib/plat-mac/ic.py
index 91e14f3ac25466addfdc752ad6e3a87f00e601f2..33091ff03f35930a9ce2fd6d912b956a0e5fb3cf 100644
(file)
--- a/
Lib/plat-mac/ic.py
+++ b/
Lib/plat-mac/ic.py
@@
-195,6
+195,10
@@
class IC:
self.ic.ICSetPref(key, ICattr_no_change, value)
def launchurl(self, url, hint=""):
+ # Work around a bug in ICLaunchURL: file:/foo does
+ # not work but file:///foo does.
+ if url[:6] == 'file:/' and url[6] != '/':
+ url = 'file:///' + url[6:]
self.ic.ICLaunchURL(hint, url, 0, len(url))
def parseurl(self, data, start=None, end=None, hint=""):