mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Workaround for the fact that urllib2 doesn't default to "file:" urls.
This commit is contained in:
parent
c110f8665f
commit
30620ac641
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue