[Python-checkins] python/dist/src/Lib/plat-mac ic.py,1.3,1.4

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Tue, 25 Feb 2003 05:34:25 -0800


Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv3875

Modified Files:
	ic.py 
Log Message:
Workaround for bug #644243 (which is actually an Apple bug, I think): URLs
of the form file:/path/to/file don't work whereas file:///path/to/file
works fine. We convert the former to the latter.


Index: ic.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/ic.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ic.py	21 Feb 2003 23:18:48 -0000	1.3
--- ic.py	25 Feb 2003 13:34:22 -0000	1.4
***************
*** 196,199 ****
--- 196,203 ----
  		
  	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))