[vtk-developers] Update: Making Tests Python 3/2 compatible.

David Gobbi david.gobbi at gmail.com
Mon Aug 10 12:56:59 EDT 2015


On Mon, Aug 10, 2015 at 9:31 AM, Ben Boeckel <ben.boeckel at kitware.com>
wrote:

> On Mon, Aug 10, 2015 at 08:55:54 -0600, David Gobbi wrote:
> > I wouldn't be testing on Python 3.2 if I didn't think it would be worth
> > supporting.  There are still plenty of deployed systems around
> > (particularly Ubuntu and Debian) that come with Python 3.2 packages, and
> > they're far from End of Life.  And honestly, supporting Python 3.2
> doesn't
> > take much effort.
>
> FTR, the only Debian and Ubuntu releases with 3.2 are oldstable (wheezy,
> supported until February 2016; LTS until May 2018) and precise (12.04
> LTS, supported until April 2017).
>
> In any case, isn't this fixed with unicode('hello')?


There is no unicode() in Python 3, so you'd have to make one for
compatibility:

    if sys.hexversion >= 0x03000000:
        unicode = str

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150810/215f1b4a/attachment.html>


More information about the vtk-developers mailing list