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:
parent
a6714119f9
commit
b6e5ce7e15
4 changed files with 28 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
# Copyright (C) 2010, 2012 Laboratoire de Recherche et Développement
|
||||
# de l'EPITA.
|
||||
# Copyright (C) 2010, 2012, 2014 Laboratoire de Recherche et
|
||||
# Développement de l'EPITA.
|
||||
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6
|
||||
# (LIP6), département Systèmes Répartis Coopératifs (SRC), Université
|
||||
# Pierre et Marie Curie.
|
||||
|
|
@ -42,3 +42,7 @@ while not iter.done():
|
|||
# it means buddy can grok spot's objects.
|
||||
iter.next()
|
||||
sys.stdout.write("%s\n" % b)
|
||||
del b
|
||||
del c
|
||||
del f
|
||||
del a
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue