[Spice-devel] [PATCH] Make spice_codegen.py work on both Python 2 and 3

Alexander Wauck awauck at codeweavers.com
Tue Mar 31 09:46:03 PDT 2015


On Tue, 31 Mar 2015 18:40:13 +0200
Christophe Fergeau <cfergeau at redhat.com> wrote:

> We don't bundle pyparsing for example, and six.py is indeed available
> from distros (fedora has it too), so I don't think it should be bundled
> here.

I'll remove it, then.  I'll just send out a new patch, which should be
quite a bit easier to digest :)

> > Ah, yes.  That's one of the other big changes in python3: integer division.
> > The proper python3 way to do it is the // operator, which has apparently been
> > available in python2 since 2.2:
> > 
> > https://docs.python.org/release/2.2.3/whatsnew/node7.html
> 
> Ah thanks for the explanation, // looks better than my int() hack :)

I'll take care of this while I'm at it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150331/9f0a2be4/attachment.sig>


More information about the Spice-devel mailing list