/usr/share/zsnapd/scripts/zsnapd.py:116: SyntaxWarning: "is" with a literal. Did you mean "=="?

Bug #1874172 reported by Seth Arnold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zsnapd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello, it appears there's a syntax error in zsnapd:

Setting up python3 (3.8.2-0ubuntu2) ...
running python rtupdate hooks for python3.8...
/usr/share/zsnapd/scripts/zsnapd.py:116: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if (__name__ is "__main__"):
running python post-rtupdate hooks for python3.8...

I spotted this while performing an apt install -f within focal:

$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libboost-date-time1.67.0 libboost-locale1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libpoppler90
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libboost-locale1.71.0 libpython3-stdlib libreoffice-common libtalloc2 libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 python3
  python3-minimal python3-talloc python3.8 python3.8-minimal uno-libs-private
Suggested packages:
  python3-doc python3-tk python3-venv python3.8-venv python3.8-doc binfmt-support
Recommended packages:
  fonts-liberation2 | ttf-mscorefonts-installer
The following packages will be REMOVED:
  uno-libs3
The following NEW packages will be installed:
  libboost-locale1.71.0 libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 python3.8 python3.8-minimal uno-libs-private
The following packages will be upgraded:
  libpython3-stdlib libreoffice-common libtalloc2 python3 python3-minimal python3-talloc
6 upgraded, 9 newly installed, 1 to remove and 26 not upgraded.
15 not fully installed or removed.
Need to get 0 B/27.1 MB of archives.
After this operation, 27.7 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 139122 files and directories currently installed.)
Removing uno-libs3 (6.3.4-0ubuntu1) ...
Selecting previously unselected package libuno-sal3.
(Reading database ... 139102 files and directories currently installed.)
Preparing to unpack .../00-libuno-sal3_1%3a6.4.2-0ubuntu3_amd64.deb ...
Unpacking libuno-sal3 (1:6.4.2-0ubuntu3) ...
Selecting previously unselected package libuno-salhelpergcc3-3.
Preparing to unpack .../01-libuno-salhelpergcc3-3_1%3a6.4.2-0ubuntu3_amd64.deb ...
Unpacking libuno-salhelpergcc3-3 (1:6.4.2-0ubuntu3) ...
Selecting previously unselected package libuno-cppu3.
Preparing to unpack .../02-libuno-cppu3_1%3a6.4.2-0ubuntu3_amd64.deb ...
Unpacking libuno-cppu3 (1:6.4.2-0ubuntu3) ...
Selecting previously unselected package uno-libs-private.
Preparing to unpack .../03-uno-libs-private_1%3a6.4.2-0ubuntu3_amd64.deb ...
Unpacking uno-libs-private (1:6.4.2-0ubuntu3) ...
Selecting previously unselected package libuno-cppuhelpergcc3-3.
Preparing to unpack .../04-libuno-cppuhelpergcc3-3_1%3a6.4.2-0ubuntu3_amd64.deb ...
Unpacking libuno-cppuhelpergcc3-3 (1:6.4.2-0ubuntu3) ...
Selecting previously unselected package libuno-purpenvhelpergcc3-3.
Preparing to unpack .../05-libuno-purpenvhelpergcc3-3_1%3a6.4.2-0ubuntu3_amd64.deb ...
Unpacking libuno-purpenvhelpergcc3-3 (1:6.4.2-0ubuntu3) ...
Preparing to unpack .../06-libreoffice-common_1%3a6.4.2-0ubuntu3_all.deb ...
Unpacking libreoffice-common (1:6.4.2-0ubuntu3) over (1:6.3.4-0ubuntu1) ...
Selecting previously unselected package libboost-locale1.71.0:amd64.
Preparing to unpack .../07-libboost-locale1.71.0_1.71.0-6ubuntu6_amd64.deb ...
Unpacking libboost-locale1.71.0:amd64 (1.71.0-6ubuntu6) ...
Selecting previously unselected package python3.8-minimal.
Preparing to unpack .../08-python3.8-minimal_3.8.2-1ubuntu1_amd64.deb ...
Unpacking python3.8-minimal (3.8.2-1ubuntu1) ...
Preparing to unpack .../09-libtalloc2_2.3.0-3ubuntu1_amd64.deb ...
Unpacking libtalloc2:amd64 (2.3.0-3ubuntu1) over (2.3.0-3) ...
Preparing to unpack .../10-python3-talloc_2.3.0-3ubuntu1_amd64.deb ...
Unpacking python3-talloc:amd64 (2.3.0-3ubuntu1) over (2.3.0-3) ...
Setting up python3.8-minimal (3.8.2-1ubuntu1) ...
(Reading database ... 139172 files and directories currently installed.)
Preparing to unpack .../python3-minimal_3.8.2-0ubuntu2_amd64.deb ...
Unpacking python3-minimal (3.8.2-0ubuntu2) over (3.7.5-1ubuntu1) ...
Setting up python3-minimal (3.8.2-0ubuntu2) ...
(Reading database ... 139170 files and directories currently installed.)
Preparing to unpack .../python3_3.8.2-0ubuntu2_amd64.deb ...
running python pre-rtupdate hooks for python3.8...
Unpacking python3 (3.8.2-0ubuntu2) over (3.7.5-1ubuntu1) ...
Selecting previously unselected package python3.8.
Preparing to unpack .../python3.8_3.8.2-1ubuntu1_amd64.deb ...
Unpacking python3.8 (3.8.2-1ubuntu1) ...
Preparing to unpack .../libpython3-stdlib_3.8.2-0ubuntu2_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.8.2-0ubuntu2) over (3.7.5-1ubuntu1) ...
Setting up libuno-sal3 (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-style-tango (1:6.4.2-0ubuntu3) ...
Setting up libtalloc2:amd64 (2.3.0-3ubuntu1) ...
Setting up libboost-locale1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up python3.8 (3.8.2-1ubuntu1) ...
Setting up libpython3-stdlib:amd64 (3.8.2-0ubuntu2) ...
Setting up python3 (3.8.2-0ubuntu2) ...
running python rtupdate hooks for python3.8...
/usr/share/zsnapd/scripts/zsnapd.py:116: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if (__name__ is "__main__"):
running python post-rtupdate hooks for python3.8...
Setting up python3-talloc:amd64 (2.3.0-3ubuntu1) ...
Setting up libuno-salhelpergcc3-3 (1:6.4.2-0ubuntu3) ...
Setting up uno-libs-private (1:6.4.2-0ubuntu3) ...
Setting up libuno-cppu3 (1:6.4.2-0ubuntu3) ...
Setting up libuno-cppuhelpergcc3-3 (1:6.4.2-0ubuntu3) ...
Setting up libuno-purpenvhelpergcc3-3 (1:6.4.2-0ubuntu3) ...
Setting up ure (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-common (1:6.4.2-0ubuntu3) ...
Installing new version of config file /etc/libreoffice/psprint.conf ...
Installing new version of config file /etc/libreoffice/sofficerc ...
Setting up libreoffice-core (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-math (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-draw (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-base-drivers (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-impress (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-base-core (1:6.4.2-0ubuntu3) ...
Setting up python3-uno (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-calc (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-base (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-writer (1:6.4.2-0ubuntu3) ...
Setting up libreoffice-report-builder-bin (1:6.4.2-0ubuntu3) ...
Setting up libreoffice (1:6.4.2-0ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for shared-mime-info (1.15-1) ...

Thanks

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: zsnapd 0.8.11h-1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-24.28+lp1861359v3-generic 5.4.30
Uname: Linux 5.4.0-24-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Apr 22 01:49:26 2020
PackageArchitecture: all
ProcEnviron:
 TERM=rxvt-unicode-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: zsnapd
UpgradeStatus: Upgraded to focal on 2020-01-24 (88 days ago)

Revision history for this message
Seth Arnold (seth-arnold) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.