Python syntax issues in SgtLauncher.py

Bug #1870633 reported by Daniel Richard G. on 2020-04-03
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SGT Puzzles Collection
New
Unknown
sgt-launcher (Ubuntu)
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.

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
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) on 2020-06-14
Changed in sgt-launcher:
importance: Undecided → Unknown
status: New → Unknown
Changed in sgt-launcher:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.