-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
It even works without. For urllib2, you do need to use file:// urls.
valhallasw@dorthonion:~$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import urllib, urllib2 urllib.urlopen('/etc/passwd').readlines()
['root:x:0:0:root:/root:/bin/bash\n', (...) ,'usbmux:x:109:46:usbmux daemon,,,:/home/usbmux:/bin/false\n']
urllib2.urlopen('file:///etc/passwd').readlines()
['root:x:0:0:root:/root:/bin/bash\n', (...)
That's nice - never used it - of course in this case it's a pitty... ;)
btw.: ...is the pywikipedia framework's 'getUrl' safe in this sence?
Thanks for all hints so far!