This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srid
Recipients srid
Date 2009-06-04.19:05:25
SpamBayes Score 7.213723e-10
Marked as misclassified No
Message-id <1244142328.47.0.29736473077.issue6193@psf.upfronthosting.co.za>
In-reply-to
Content
On Windows, urllib fails to open local files:

> python -c "import urllib; urllib.urlopen(r'C:\test.txt').read()"
Traceback (most recent call last):
  File "C:\HOME\as\pypm\bin\python-script.py", line 33, in <module>
    exec _val
  File "<string>", line 1, in <module>
  File "C:\Python26\lib\urllib.py", line 87, in urlopen
    return opener.open(url)
  File "C:\Python26\lib\urllib.py", line 200, in open
    return self.open_unknown(fullurl, data)
  File "C:\Python26\lib\urllib.py", line 212, in open_unknown
    raise IOError, ('url error', 'unknown url type', type)
IOError: [Errno url error] unknown url type: 'c'


However, on Unix this is not an issue:

$ python -c "import urllib; print urllib.urlopen('/tmp/test.txt').read()"
Foo
$
History
Date User Action Args
2009-06-04 19:05:28sridsetrecipients: + srid
2009-06-04 19:05:28sridsetmessageid: <1244142328.47.0.29736473077.issue6193@psf.upfronthosting.co.za>
2009-06-04 19:05:27sridlinkissue6193 messages
2009-06-04 19:05:26sridcreate