Bug#945282: python3-tables: getting a SyntaxWarning during installation

Salman Mohammadi salman at smoha.org
Fri Nov 22 12:09:21 GMT 2019


Package: python3-tables
Version: 3.5.2-4
Severity: normal

Dear Maintainer,

During python3-tables upgrade, I get the following warning message:

Setting up python3-tables (3.5.2-4) ...
/usr/lib/python3/dist-packages/tables/scripts/pttree.py:318: 
SyntaxWarning: "is" with a literal. Did you mean "=="?
if path is '/':
/usr/lib/python3/dist-packages/tables/scripts/pttree.py:327: 
SyntaxWarning: "is not" with a literal. Did you mean "!="?
if path is not '/':

After looking at the source code, these lines are causing this warning:

else:
# natural order
if path is '/':
# root is not in root._v_children
pretty[path].sort_by = 0
else:
pretty[path].sort_by = list(parent._v_children.values(
)).index(node)

and

if path is not '/':

# create a PrettyTree for the parent of this node, if one
# doesn't exist already
if parent_path not in pretty:
pretty.update({parent_path: PrettyTree()})


Regards,
Salman

-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-tables depends on:
ii python-tables-data 3.5.2-4
ii python3 3.7.5-3
ii python3-numexpr 2.7.0-1+b1
ii python3-numpy 1:1.17.4-3
ii python3-six 1.13.0-1
ii python3-tables-lib 3.5.2-4

python3-tables recommends no packages.

Versions of packages python3-tables suggests:
pn python-tables-doc <none>
pn python3-netcdf4 <none>
pn vitables <none>

-- no debconf information



More information about the debian-science-maintainers mailing list