[Python-modules-team] Bug#710312: python3-pywapi: ifails to install: SyntaxError in /usr/lib/python3/dist-packages/pywapi.py, line 370

Jakub Wilk jwilk at debian.org
Wed May 29 19:48:25 UTC 2013


* Andreas Beckmann <anbe at debian.org>, 2013-05-29, 21:22:
>  Setting up python3-pywapi (0.3.2-1) ...
>    File "/usr/lib/python3/dist-packages/pywapi.py", line 370
>      weather_data['geo']['lat'] = u''
>                                     ^
>  SyntaxError: invalid syntax

u'' literals are valid only in Python 2 and in Python >= 3.3.
Running 2to3 over the code shows that's there are more 2isms: xrange(), 
.has_key().

-- 
Jakub Wilk



More information about the Python-modules-team mailing list