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

version graph

Package: bleachbit; Maintainer for bleachbit is (unknown); Source for bleachbit is src:bleachbit.

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

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#571: bleachbit: python3 SyntaxWarning for __init__.py
Reply-To: Florian Zieboll <f.zieboll@web.de>, 571@bugs.devuan.org
Resent-From: Florian Zieboll <f.zieboll@web.de>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: f.zieboll@web.de, devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Mon, 22 Mar 2021 14:03:02 +0000
Resent-Message-ID: <handler.571.B.16164210059074@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 571
X-Devuan-PR-Package: bleachbit
X-Devuan-PR-Keywords: patch
Received: via spool by submit@bugs.devuan.org id=B.16164210059074
          (code B); Mon, 22 Mar 2021 14:03:02 +0000
Received: (at submit) by bugs.devuan.org; 22 Mar 2021 13:50:05 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Mon, 22 Mar 2021 13:50:05 +0000 (UTC)
Received: from [127.0.0.1] (p509399e0.dip0.t-ipconnect.de [80.147.153.224])
	by vm6.ganeti.dyne.org (Postfix) with ESMTP id 9742CF604E8
	for <submit@bugs.devuan.org>; Mon, 22 Mar 2021 14:41:59 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Florian Zieboll <f.zieboll@web.de>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Message-ID: <161642050775.4696.625178923352843150.reportbug@localhost>
Date: Mon, 22 Mar 2021 14:41:47 +0100
X-Spam-Status: No, score=1.2 required=5.0 tests=FREEMAIL_FROM,HELO_MISC_IP,
	KHOP_DYNAMIC,SPF_FAIL autolearn=disabled version=3.4.2
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
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.

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: Fri Mar 29 09:09:29 2024;