No module named urllib
Jorge Godoy
jgodoy at gmail.com
Mon May 7 19:31:58 EDT 2007
HMS Surprise <john at datavoiceint.com> writes:
> Since sys.path = ['.', 'C:\\maxq\\lib\\Lib', 'C:\\maxq\\jython'] I
> copied urllib to c:\maxq\lib\Lib.
>
> Now I get the error -
>
> Traceback (innermost last):
> File "<string>", line 5, in ?
> File "C:\maxq\lib\Lib\urllib.py", line 1148
> _hextochr = dict(('%02x' % i, chr(i)) for i in range(256))
> ^
> SyntaxError: invalid syntax
>>> dict(1, 1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: dict expected at most 1 arguments, got 2
>>> dict(a=1)
{'a': 1}
>>>
--
Jorge Godoy <jgodoy at gmail.com>
More information about the Python-list
mailing list