Bug#944918: python3-cvxopt: Syntax warnings
Nicolas Patrois
nicolas.patrois at gmail.com
Sun Nov 17 17:26:03 GMT 2019
Package: python3-cvxopt
Version: 1.2.3+dfsg-2
Severity: wishlist
Tags: upstream
Dear Maintainer,
The latest upgrade shows these lines:
Paramétrage de python3-cvxopt (1.2.3+dfsg-2) ...
/usr/lib/python3/dist-packages/cvxopt/__init__.py:136: SyntaxWarning: "is" with
a literal. Did you mean "=="?
if val is 0: val = None
/usr/lib/python3/dist-packages/cvxopt/coneprog.py:4043: SyntaxWarning: "is"
with a literal. Did you mean "=="?
if status is 'optimal' or dcost <= 0.0:
/usr/lib/python3/dist-packages/cvxopt/coneprog.py:4061: SyntaxWarning: "is"
with a literal. Did you mean "=="?
if status is 'optimal' or pcost >= 0.0:
/usr/lib/python3/dist-packages/cvxopt/misc.py:916: SyntaxWarning: "is" with a
literal. Did you mean "=="?
if diag is 'N':
/usr/lib/python3/dist-packages/cvxopt/msk.py:105: SyntaxWarning: "is" with a
literal. Did you mean "=="?
if m is 0: raise ValueError("m cannot be 0")
/usr/lib/python3/dist-packages/cvxopt/msk.py:178: SyntaxWarning: "is not" with
a literal. Did you mean "!="?
if p is not 0:
/usr/lib/python3/dist-packages/cvxopt/msk.py:314: SyntaxWarning: "is" with a
literal. Did you mean "=="?
if cdim is 0: raise ValueError("ml+mq+ms cannot be 0")
/usr/lib/python3/dist-packages/cvxopt/msk.py:750: SyntaxWarning: "is" with a
literal. Did you mean "=="?
if m+p is 0: raise ValueError("m + p must be greater than 0")
/usr/lib/python3/dist-packages/cvxopt/msk.py:815: SyntaxWarning: "is not" with
a literal. Did you mean "!="?
if m is not 0:
/usr/lib/python3/dist-packages/cvxopt/msk.py:823: SyntaxWarning: "is not" with
a literal. Did you mean "!="?
if p is not 0:
/usr/lib/python3/dist-packages/cvxopt/msk.py:904: SyntaxWarning: "is" with a
literal. Did you mean "=="?
if m is 0: raise ValueError("m cannot be 0")
/usr/lib/python3/dist-packages/cvxopt/printing.py:43: SyntaxWarning: "is" with
a literal. Did you mean "=="?
if width*height is 0: return ""
/usr/lib/python3/dist-packages/cvxopt/printing.py:44: SyntaxWarning: "is" with
a literal. Did you mean "=="?
if len(X) is 0: return ""
/usr/lib/python3/dist-packages/cvxopt/printing.py:101: SyntaxWarning: "is" with
a literal. Did you mean "=="?
if width*height is 0: return ""
Note that I have similar lines for the python3-urwid package:
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:141: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
assert result == expected, "got: %r expected: %r" (result, expected)
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:145: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
assert result == expected, "got: %r expected: %r" (result, expected)
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:149: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
assert result == expected, "got: %r expected: %r" (result, expected)
/usr/lib/python3/dist-packages/urwid/tests/test_canvas.py:232: SyntaxWarning:
'str' object is not callable; perhaps you missed a comma?
assert result == expected, "got: %r expected: %r" (result, expected)
Yours,
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 4.17.0-3-686-pae (SMP w/3 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR:fr:en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-cvxopt depends on:
ii libamd2 1:5.6.0+dfsg-2
ii libatlas3-base [liblapack.so.3] 3.10.3-8
ii libblas3 [libblas.so.3] 3.8.0-8
ii libc6 2.29-3
ii libcholmod3 1:5.6.0+dfsg-2
ii libdsdp-5.8gf 5.8-9.4
ii libfftw3-double3 3.3.8-2
ii libglpk40 4.65-2
ii libgsl23 2.5+dfsg-6+b1
ii liblapack3 [liblapack.so.3] 3.8.0-8
ii libopenblas0-pthread [liblapack.so.3] 0.3.7+ds-3
ii libumfpack5 1:5.6.0+dfsg-2
ii python3 3.7.5-3
python3-cvxopt recommends no packages.
Versions of packages python3-cvxopt suggests:
pn python-cvxopt-doc <none>
-- no debconf information
More information about the debian-science-maintainers
mailing list