changeset 97bbe23ef811 in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=97bbe23ef811
description:
        Do not use unnamed argument after *expression

        Python 3.4 supports only named arguments following *expression.

        issue11836
diffstat:

 tryton/pyson.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 7165104f087f -r 97bbe23ef811 tryton/pyson.py
--- a/tryton/pyson.py   Sat Nov 05 09:51:17 2022 +0100
+++ b/tryton/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:

Reply via email to