python: better support for Python 3

* wrap/python/spot.i (spot::ltl::parse_error_list,
spot::tgba_parse_error_list): Add a __bool__ method, that is used
instead of __nonzero__ in Python 3.
* wrap/python/tests/interdep.py, wrap/python/tests/parsetgba.py:
Force destruction order.
* NEWS: Update.
This commit is contained in:
Alexandre Duret-Lutz 2014-02-02 15:33:11 +01:00
parent a6714119f9
commit b6e5ce7e15
4 changed files with 28 additions and 6 deletions

View file

@ -1,5 +1,5 @@
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2012 Laboratoire de Recherche et Développement
# Copyright (C) 2012, 2014 Laboratoire de Recherche et Développement
# de l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
@ -41,4 +41,8 @@ assert not p
spot.dotty_reachable(spot.get_cout(), a)
del p
del a
del d
os.unlink(filename)