Syntax warnings while installing pasaffe in terminal

Bug #1860613 reported by Amr Ibrahim
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pasaffe
Fix Released
Undecided
Unassigned
pasaffe (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Steps to reproduce the bug:

1. Open a terminal
2. sudo apt install pasaffe
3. Look at the terminal output

/usr/lib/python3/dist-packages/pasaffe_lib/helpers.py:286: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(folders) is 0 or folders is None:
/usr/lib/python3/dist-packages/pasaffe_lib/readdb.py:26: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if os.name is "posix":
/usr/lib/python3/dist-packages/pasaffe_lib/readdb.py:28: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif os.name is "nt":
/usr/lib/python3/dist-packages/pasaffe_lib/readdb.py:156: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if os.name is "posix":
/usr/lib/python3/dist-packages/pasaffe_lib/readdb.py:158: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif os.name is "nt":

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: pasaffe 0.55-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-9.12-generic 5.4.3
Uname: Linux 5.4.0-9-generic x86_64
ApportVersion: 2.20.11-0ubuntu15
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Jan 22 23:02:52 2020
InstallationDate: Installed on 2020-01-21 (1 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Alpha amd64 (20200117)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: pasaffe
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Marking confirmed, I see the same warnings when installing pasaffe on Ubuntu Focal.

Changed in pasaffe (Ubuntu):
status: New → Confirmed
Changed in pasaffe:
status: New → Confirmed
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pasaffe - 0.56-0ubuntu1

---------------
pasaffe (0.56-0ubuntu1) focal; urgency=medium

  * New upstream release
    - Fix some warnings with a newer version of flake8 (LP: #1860613)

 -- Marc Deslauriers <email address hidden> Tue, 28 Jan 2020 14:23:41 -0500

Changed in pasaffe (Ubuntu):
status: Confirmed → Fix Released
Changed in pasaffe:
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.