Devuan bug report logs - #571
bleachbit: python3 SyntaxWarning for __init__.py

version graph

Package: bleachbit; Maintainer for bleachbit is (unknown);

Reported by: Florian Zieboll <f.zieboll@web.de>

Date: Mon, 22 Mar 2021 14:03:02 UTC

Severity: minor

Tags: debian, patch

Found in version 3.9.0-1

Done: Florian Zieboll <f.zieboll@web.de>

Forwarded to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974530

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to devuan-bugs@lists.dyne.org, f.zieboll@web.de, devuan-dev@lists.dyne.org:
bug#571; Package bleachbit. (Mon, 22 Mar 2021 14:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Florian Zieboll <f.zieboll@web.de>:
New bug report received and forwarded. Copy sent to f.zieboll@web.de, devuan-dev@lists.dyne.org. (Mon, 22 Mar 2021 14:03:15 GMT) (full text, mbox, link).


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

From: Florian Zieboll <f.zieboll@web.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: bleachbit: python3 SyntaxWarning for __init__.py
Date: Mon, 22 Mar 2021 14:41:47 +0100
Package: bleachbit
Version: 3.9.0-1
Severity: minor
Tags: patch
X-Debbugs-Cc: f.zieboll@web.de


Hello!

When installing Bleachbit, the python rtupdate hooks for python3.9 return a
Syntax warning for /usr/share/bleachbit/bleachbit/__init__.py:


  root@nulldevice:~# dpkg-reconfigure python3
  running python rtupdate hooks for python3.9...
  /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 "":
  running python post-rtupdate hooks for python3.9...


As expected, the following patch fixes the issue:

  260c260
  <     if msgctxt != None and msgctxt != "":
  ---
  >     if msgctxt is not None and msgctxt is not "":


Best regards,
Florian



-- System Information:
Distributor ID: Devuan
Description:    Devuan GNU/Linux 4 (chimaera/ceres)
Release:        testing/unstable
Codename:       n/a
Architecture: x86_64

Kernel: Linux 5.10.0-4-amd64 (SMP w/8 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 /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

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

bleachbit recommends no packages.

bleachbit suggests no packages.

Reply sent to Florian Zieboll <f.zieboll@web.de>:
You have taken responsibility. (Mon, 22 Mar 2021 14:33:01 GMT) (full text, mbox, link).


Notification sent to Florian Zieboll <f.zieboll@web.de>:
bug acknowledged by developer. (Mon, 22 Mar 2021 14:33:04 GMT) (full text, mbox, link).


Message #10 received at 571-done@bugs.devuan.org (full text, mbox, reply):

From: Florian Zieboll <f.zieboll@web.de>
To: 571-done@bugs.devuan.org
Subject: CLOSED
Date: Mon, 22 Mar 2021 15:10:23 +0100
That was one click to quick,the bug is now filed in the Debian BTS:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985707




Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#571; Package bleachbit. (Mon, 22 Mar 2021 18:03:02 GMT) (full text, mbox, link).


Message #13 received at 571@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Florian Zieboll <f.zieboll@web.de>, 571@bugs.devuan.org
Subject: Re: bug#571: bleachbit: python3 SyntaxWarning for __init__.py
Date: Mon, 22 Mar 2021 17:40:48 +0000
Control: tags -1 debian
Control: forwarded -1 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974530

Florian,

Thanks for this.

On Mon, Mar 22, 2021 at 02:41:47PM +0100, Florian Zieboll wrote:
> Package: bleachbit
> Version: 3.9.0-1
> Severity: minor
> Tags: patch
> X-Debbugs-Cc: f.zieboll@web.de
> 
> 
> Hello!
> 
> When installing Bleachbit, the python rtupdate hooks for python3.9 return a
> Syntax warning for /usr/share/bleachbit/bleachbit/__init__.py:

However bleachbit is not a forked package and Devuan uses Debian's packages
directly. This should be reported to Debian's BTS. Indeed a quick look shows
that it already has been: see https://bugs.debian.org/974530

Thanks.

Mark

Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 571-submit@bugs.devuan.org. (Mon, 22 Mar 2021 18:03:07 GMT) (full text, mbox, link).


Set bug forwarded-to-address to 'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974530'. Request was from Mark Hindley <mark@hindley.org.uk> to 571-submit@bugs.devuan.org. (Mon, 22 Mar 2021 18:03:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun May 9 08:28:27 2021;