python - Urllib trouble across platforms -


on linux, urllib.urlopen("https://www.facebook.com/fql.php?query=select first_name user") have spaces automatically quoted , run smoothly.
(by way, url fictional)

however on mac, not case. somehow url not escaped, , error thrown. have checked both python versions @ least 2.6 , version of urllib 1.17

is bug?

urlopen documentation doesn't promise escape anything. use urllib.quote() escape yourself.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -