mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
some RiscOS stuff I missed before (was only looking for "RISCOS")
This commit is contained in:
parent
ceaafa66ef
commit
289bc05709
15 changed files with 57 additions and 117 deletions
|
@ -26,10 +26,6 @@ class TrivialTests(unittest.TestCase):
|
|||
# urllib.pathname2url works, unfortunately...
|
||||
if os.name == 'mac':
|
||||
fname = '/' + fname.replace(':', '/')
|
||||
elif os.name == 'riscos':
|
||||
import string
|
||||
fname = os.expand(fname)
|
||||
fname = fname.translate(string.maketrans("/.", "./"))
|
||||
|
||||
file_url = "file://%s" % fname
|
||||
f = urllib2.urlopen(file_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue