changeset 504e21e7836e in proteus:5.0 details: https://hg.tryton.org/proteus?cmd=changeset&node=504e21e7836e description: Do not use unnamed argument after *expression
Python 3.4 supports only named arguments following *expression. issue11836 diffstat: proteus/pyson.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r 771dae0c7cf0 -r 504e21e7836e proteus/pyson.py --- a/proteus/pyson.py Sat Nov 05 09:51:17 2022 +0100 +++ b/proteus/pyson.py Sat Nov 12 10:14:17 2022 +0100 @@ -31,7 +31,7 @@ other = Bool(other) if (isinstance(self, And) and not isinstance(self, Or)): - return And(*self._statements, other) + return And(*(self._statements + [other])) if self.types() != {bool}: return And(Bool(self), other) else: @@ -44,7 +44,7 @@ and other.types() != {bool}): other = Bool(other) if isinstance(self, Or): - return Or(*self._statements, other) + return Or(*(self._statements + [other])) if self.types() != {bool}: return Or(Bool(self), other) else: