Python syntax issues in SgtLauncher.py

Bug #1870633 reported by Daniel Richard G.
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SGT Puzzles Collection
Fix Released
Unknown
sgt-launcher (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This concerns sgt-launcher version 0.2.5-0ubuntu1 in Ubuntu focal.

I see the following when installing the package:

Setting up sgt-launcher (0.2.5-0ubuntu1) ...
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
  self.stdin = io.open(p2cwrite, 'wb', bufsize)
/usr/lib/python3/dist-packages/sgtlauncher/SgtLauncher.py:232: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if name is "launcher":
/usr/lib/python3/dist-packages/sgtlauncher/SgtLauncher.py:235: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if name is "loading":
/usr/lib/python3/dist-packages/sgtlauncher/SgtLauncher.py:238: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if name is "game":
/usr/lib/python3/dist-packages/sgtlauncher/SgtLauncher.py:250: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if name is not "launcher" and os.path.isfile(icon_name):
/usr/lib/python3/dist-packages/sgtlauncher/SgtLauncher.py:260: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if name is "game":

The "line buffering" warning is a different issue, but the SyntaxWarning messages indicate problems with at least one of this package's Python scripts.

Tags: focal
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

I see the same warning messages upon installation of this package.

Changed in sgt-launcher (Ubuntu):
status: New → Confirmed
tags: added: focal
Revision history for this message
zagglez (zagglez) wrote :

I didn't get the line buffering warning during my upgrade (2020/5/9)
However I did see the sgtlauncher syntax warnings is vs == during upgrade from 18.04 to 20.04.

Sean Davis (bluesabre)
Changed in sgt-launcher:
importance: Undecided → Unknown
status: New → Unknown
Changed in sgt-launcher:
status: Unknown → New
Changed in sgt-launcher:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sgt-launcher - 0.2.7-0ubuntu1

---------------
sgt-launcher (0.2.7-0ubuntu1) impish; urgency=medium

  * New upstream bugfix release.
    - Fix: Python syntax issues (LP: #1870633)
    - Fix: Embed issues in GNOME (LP: #1885411)
  * d/control, d/copyright, d/watch:
    - Switch to new github.com/bluesabre/sgt-launcher upstream
  * d/control:
    - Bump debhelper-compat to 13
    - Bump Standards-Version to 4.5.1
  * d/preinst, d/postrm:
    - Add `set -e` to catch errors
  * d/rules:
    - Install new CHANGELOG.md
  * d/watch:
    - Bump watch version to 4

 -- Sean Davis <email address hidden> Sun, 12 Sep 2021 07:18:17 -0400

Changed in sgt-launcher (Ubuntu):
status: Confirmed → 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.