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

Paul Tagliamonte paultag at debian.org
Wed May 29 19:53:17 UTC 2013


On Wed, May 29, 2013 at 09:48:25PM +0200, Jakub Wilk wrote:
> * 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().

Worse case, as a patcher (and if you really need to fix this for 3.2),
you *can* add a dependency on six and replace u"foo" --> u("foo").

Cheers,
  Paul

-- 
 .''`.  Paul Tagliamonte <paultag at debian.org>
: :'  : Proud Debian Developer
`. `'`  4096R / 8F04 9AD8 2C92 066C 7352  D28A 7B58 5B30 807C 2A87
 `-     http://people.debian.org/~paultag
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20130529/fe8d2678/attachment.pgp>


More information about the Python-modules-team mailing list