Debian Bug report logs - #974530
SyntaxWarning: "is not" with a literal. Did you mean "!="?

version graph

Package: bleachbit; Maintainer for bleachbit is Debian Python Team <team+python@tracker.debian.org>; Source for bleachbit is src:bleachbit (PTS, buildd, popcon).

Reported by: xiscu <xiscu@email.de>

Date: Wed, 11 Nov 2020 19:06:02 UTC

Severity: normal

Found in versions bleachbit/3.9.0-1, bleachbit/3.9.0-2

Fixed in version bleachbit/4.4.2-1

Done: Fabio Fantoni <fantonifabio@tiscali.it>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Hugo Lefeuvre <hle@debian.org>:
Bug#974530; Package bleachbit. (Wed, 11 Nov 2020 19:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to xiscu <xiscu@email.de>:
New Bug report received and forwarded. Copy sent to Hugo Lefeuvre <hle@debian.org>. (Wed, 11 Nov 2020 19:06:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: xiscu <xiscu@email.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: SyntaxWarning: "is not" with a literal. Did you mean "!="?
Date: Wed, 11 Nov 2020 19:57:16 +0100
Package: bleachbit
Version: 3.9.0-1
Severity: normal

Dear Maintainer,

On the current daily apt-get update && apt-get dist-upgrade I got some SyntaxWarnings:

Setting up python3 (3.8.6-1) ...
running python rtupdate hooks for python3.8...
/usr/share/bleachbit/bleachbit/__init__.py:260: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if msgctxt is not None and msgctxt is not "":
/usr/share/dstat/dstat_mysql_keys.py:41: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  if op.debug > 1: print('%s: exception' (self.filename, e))
/usr/share/dstat/dstat_squid.py:48: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  if op.debug > 1: print('%s: exception' (self.filename, e))

Thanks in advance
xiscu

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (900, 'testing'), (10, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages bleachbit depends on:
ii  gir1.2-gtk-3.0    3.24.23-2
ii  libgtk-3-0        3.24.23-2
ii  policykit-1       0.105-29
ii  python3           3.8.6-1
ii  python3-chardet   3.0.4-7
ii  python3-gi        3.38.0-1+b1
ii  python3-requests  2.24.0+dfsg-1

bleachbit recommends no packages.

bleachbit suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, witold.baryluk@gmail.com, Hugo Lefeuvre <hle@debian.org>:
Bug#974530; Package bleachbit. (Wed, 09 Dec 2020 10:21:03 GMT) (full text, mbox, link).


Acknowledgement sent to Witold Baryluk <witold.baryluk@gmail.com>:
Extra info received and forwarded to list. Copy sent to witold.baryluk@gmail.com, Hugo Lefeuvre <hle@debian.org>. (Wed, 09 Dec 2020 10:21:03 GMT) (full text, mbox, link).


Message #10 received at 974530@bugs.debian.org (full text, mbox, reply):

From: Witold Baryluk <witold.baryluk@gmail.com>
To: Debian Bug Tracking System <974530@bugs.debian.org>
Subject: Re: SyntaxWarning: "is not" with a literal. Did you mean "!="?
Date: Wed, 09 Dec 2020 10:16:38 +0000
Package: bleachbit
Version: 3.9.0-1
Followup-For: Bug #974530
X-Debbugs-Cc: witold.baryluk@gmail.com

This was fixed upstream in April 2020:

https://github.com/bleachbit/bleachbit/commit/e5cc3263ad8038d1e274f67ba5071b027c59cca2

Updating a Debian package to 4.1.x from upstream would be the best
solution. It is technically a beta, so if that is not ok, ma

Upstream even provides debian packages.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-3-amd64 (SMP w/32 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bleachbit depends on:
ii  gir1.2-gtk-3.0    3.24.23-3
ii  libgtk-3-0        3.24.23-3
ii  policykit-1       0.105-29
ii  python3           3.9.0-4
ii  python3-chardet   3.0.4-7
ii  python3-gi        3.38.0-1+b2
ii  python3-requests  2.24.0+dfsg-1

bleachbit recommends no packages.

bleachbit suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, yg2709@hotmail.com, Hugo Lefeuvre <hle@debian.org>:
Bug#974530; Package bleachbit. (Sat, 11 Sep 2021 16:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to yg2709 <yg2709@hotmail.com>:
Extra info received and forwarded to list. Copy sent to yg2709@hotmail.com, Hugo Lefeuvre <hle@debian.org>. (Sat, 11 Sep 2021 16:39:03 GMT) (full text, mbox, link).


Message #15 received at 974530@bugs.debian.org (full text, mbox, reply):

From: yg2709 <yg2709@hotmail.com>
To: Debian Bug Tracking System <974530@bugs.debian.org>
Subject: Re: SyntaxWarning: "is not" with a literal. Did you mean "!="?
Date: Sat, 11 Sep 2021 18:34:23 +0200
Package: bleachbit
Version: 3.9.0-2
Followup-For: Bug #974530
X-Debbugs-Cc: yg2709@hotmail.com

Dear Maintainer,


After today's update to version 3.9.0-2, the same SyntaxWarning is still displayed:

Configurando bleachbit (3.9.0-2) ...
/usr/share/bleachbit/bleachbit/__init__.py:260: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if msgctxt is not None and msgctxt is not "":

Without knowing anything about the python language, I have two questions:

Q1: Does bleachbit work well with this SyntaxWarning?

Q2: While arriving from upstream, can the fix indicated in message #10 be applied locally?
    It would be as follows, modifying line 260 (previously making a backup copy):

cd /usr/share/bleachbit/bleachbit/

sudo cp -p __init__.py __init__.py.20200322

sudo sed -i '260s/msgctxt is not ""/msgctxt != ""/' /usr/share/bleachbit/bleachbit/__init__.py

diff __init__.py __init__.py.20200322 
260c260
<     if msgctxt is not None and msgctxt != "":
---
>     if msgctxt is not None and msgctxt is not "":

Thanks in advance.


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

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bleachbit depends on:
ii  gir1.2-gtk-3.0    3.24.30-3
ii  libgtk-3-0        3.24.30-3
ii  policykit-1       0.105-31
ii  python3           3.9.2-3
ii  python3-chardet   4.0.0-1
ii  python3-gi        3.40.1-2
ii  python3-requests  2.25.1+dfsg-2

bleachbit recommends no packages.

bleachbit suggests no packages.

-- no debconf information



Message sent on to xiscu <xiscu@email.de>:
Bug#974530. (Thu, 17 Mar 2022 12:57:09 GMT) (full text, mbox, link).


Message #18 received at 974530-submitter@bugs.debian.org (full text, mbox, reply):

From: Jeremy Bicha <noreply@salsa.debian.org>
To: 974530-submitter@bugs.debian.org
Subject: Bug#974530 marked as pending in bleachbit
Date: Thu, 17 Mar 2022 12:52:58 +0000
Control: tag -1 pending

Hello,

Bug #974530 in bleachbit reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/bleachbit/-/commit/3e155f23b7883849c364adefe2993c50a7812df8

------------------------------------------------------------------------
mention close of other bugs

Closes: #974530, #994094
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/974530



Added tag(s) pending. Request was from Jeremy Bicha <noreply@salsa.debian.org> to 974530-submitter@bugs.debian.org. (Thu, 17 Mar 2022 12:57:09 GMT) (full text, mbox, link).


Reply sent to Fabio Fantoni <fantonifabio@tiscali.it>:
You have taken responsibility. (Thu, 17 Mar 2022 13:21:09 GMT) (full text, mbox, link).


Notification sent to xiscu <xiscu@email.de>:
Bug acknowledged by developer. (Thu, 17 Mar 2022 13:21:09 GMT) (full text, mbox, link).


Message #25 received at 974530-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 974530-close@bugs.debian.org
Subject: Bug#974530: fixed in bleachbit 4.4.2-1
Date: Thu, 17 Mar 2022 13:18:51 +0000
Source: bleachbit
Source-Version: 4.4.2-1
Done: Fabio Fantoni <fantonifabio@tiscali.it>

We believe that the bug you reported is fixed in the latest version of
bleachbit, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 974530@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fabio Fantoni <fantonifabio@tiscali.it> (supplier of updated bleachbit package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 17 Mar 2022 08:55:46 -0400
Source: bleachbit
Built-For-Profiles: noudeb
Architecture: source
Version: 4.4.2-1
Distribution: unstable
Urgency: medium
Maintainer: Hugo Lefeuvre <hle@debian.org>
Changed-By: Fabio Fantoni <fantonifabio@tiscali.it>
Closes: 958344 970229 974530 994094
Launchpad-Bugs-Fixed: 1875809 1933289 1957053
Changes:
 bleachbit (4.4.2-1) unstable; urgency=medium
 .
   * Team upload
 .
   [ Fabio Fantoni ]
   * New upstream release (Closes: #958344, #970229, #974530, #994094)
     (LP: #1957053, #1875809, #1933289)
   * Bump debhelper-compat to 13
   * d/control: add missed dependency gir1.2-notify-0.7
   * update d/copyright
   * d/control: specify that rules don't require root
 .
   [ Jeremy Bicha ]
   * debian/control: Depend on pkexec
Checksums-Sha1:
 67c7aff17b6ce972eb4dc2aa65e0fbd24099a048 2035 bleachbit_4.4.2-1.dsc
 d05193230a7d6d8b6a849053d5737b91fa58694e 1226062 bleachbit_4.4.2.orig.tar.gz
 ce93cf79d87fcdb6c108ce31784b7d8abc812df9 10200 bleachbit_4.4.2-1.debian.tar.xz
 6cd8225f005ddd42e56a934c2b4ed5ee2d5ba0cc 7709 bleachbit_4.4.2-1_source.buildinfo
Checksums-Sha256:
 92bfe7029052a578a903bd4cf52a6fc7302768ac17b3663b874d2d4247204273 2035 bleachbit_4.4.2-1.dsc
 79104eba78baa539c5f41c91c5a68ec60f002bd6ecfa90582601def0a5d2e9ec 1226062 bleachbit_4.4.2.orig.tar.gz
 cd8ac1475acd3f7e1f9da0395817819fbbbd6f86b5973957c984b1696b89aec6 10200 bleachbit_4.4.2-1.debian.tar.xz
 e375165e2bc22d0cc74ef580ef6d034d91db72f19a8c60d272e50a2a43a2c349 7709 bleachbit_4.4.2-1_source.buildinfo
Files:
 4a7548a49dbd56bd58d730f73817179f 2035 admin optional bleachbit_4.4.2-1.dsc
 346a9273e27a977e51f923de8a995026 1226062 admin optional bleachbit_4.4.2.orig.tar.gz
 9ca4d9314c5647056f017eddfe62389c 10200 admin optional bleachbit_4.4.2-1.debian.tar.xz
 ff0749eb18777b60073703c3792e6ba2 7709 admin optional bleachbit_4.4.2-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmIzMEoACgkQ5mx3Wuv+
bH0B3w/+PSCUJQNEiKM313UiTfeoBXaGt0wnOmsZc3kMaJ80hBL19A+003wO2e6r
tnXn3np7VBkCOrmbOEe3pmbTNznj5e6RyiUdOvpmuC1QrRSdi5RFZQgWyXzNWj+m
LGk240asMsL1VhKqf3rytsVvuCmGtZdtCXNcWOJoIGWOtaV0W0nZbfV4Ujhb9phP
3gKbKUjF0RV9pSeLIdZGat4cvM/nNw7djh5eNrQHa9hp+1Nyn1RjsOd6giwIVntz
A1vJdVZGIXaX9Ul1/vfWdp/aAHz4w2hko+bJip0cA/DDW3ONQJmQz7GFk+RlA6UC
cbRv4PB3PMN3OHarOrqOS0+Sug/BXHuqIB/1zppw32VykOxLeuir+WZyYC3T6lYy
MKj1EuH4fnrWkCMuGM09sbAbIjgulHAMTcvm3guKqpGLReaJ/hqQZ5YCv4VQGmFl
yfU2vXSFJ7azkT2jMcCE17OUwiXhFKOx7OSMOm4h7ithn0NQGEr8YVYqATl+tfwf
rtggXFRRLOorX4K4+dMlFqYuVrRYxNW6LdSD21mzm1Z29kz0b26GcX+cdutwIy5n
Kp20wkI39/Pr1Wu2pJn6H2GqHTxEGam5ysqmhXec5VJo0rOtpZLjKifu3fwXDFjR
IPdJmXwQuzmJ+hFhPJHxUzQtQtIjOPa3d/O9BjpOjxd4UKkwzKw=
=n8aB
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 16 Apr 2022 07:25:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 25 20:42:43 2026; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.