SyntaxWarning: "is not" with a literal

Bug #1900972 reported by amichair
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Fix Released
Low
Brian Murray

Bug Description

In the upgrade to Kubuntu 20.04, I noticed in the apt log this error when setting up usb-creator-kde . After the upgrade I ran apt install --reinstall usb-creator-kde to try again and got the same error:

Preparing to unpack .../usb-creator-kde_0.3.7_amd64.deb ...
Unpacking usb-creator-kde (0.3.7) over (0.3.7) ...
Setting up usb-creator-kde (0.3.7) ...
/usr/lib/python3/dist-packages/usbcreator/frontends/kde/frontend.py:140: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if self.__img is not '':

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in usb-creator (Ubuntu):
status: New → Confirmed
Changed in usb-creator (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
status: Confirmed → In Progress
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usb-creator - 0.3.15

---------------
usb-creator (0.3.15) kinetic; urgency=medium

  * usbcreator/frontends/kde/frontend.py: switch to using a literal in the
    comparison. (LP: #1900972)

 -- Brian Murray <email address hidden> Fri, 17 Jun 2022 11:22:10 -0700

Changed in usb-creator (Ubuntu):
status: In Progress → Fix Released
tags: added: block-proposed
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I reverted 0.3.15 back to kinetic-proposed and copied 0.3.13 back to kinetic. usb-creator 0.3.15 is not ready for migrating as it causes component-mismatches right now (2nd level of dependencies).

Changed in usb-creator (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Lukas Märdian (slyon) wrote :

The usb-creator->libisoburn->jigit & usb-creator->libisofs->jigit dependency got dropped (jigit part) to avoid the component mismatch.

https://launchpad.net/ubuntu/+source/libisoburn/1:1.5.4-2ubuntu3
https://launchpad.net/ubuntu/+source/libisofs/1.5.4-1ubuntu1

tags: removed: block-proposed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usb-creator - 0.3.15

---------------
usb-creator (0.3.15) kinetic; urgency=medium

  * usbcreator/frontends/kde/frontend.py: switch to using a literal in the
    comparison. (LP: #1900972)

 -- Brian Murray <email address hidden> Fri, 17 Jun 2022 11:22:10 -0700

Changed in usb-creator (Ubuntu):
status: Fix Committed → Fix Released
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.