bugGNU Solfege - Bugs: bug #58875, Python3 SyntaxWarning:...

 
 

bug #58875: Python3 SyntaxWarning: "is" with a literal

Submitter:  François Mazen <mzf>
Submitted:  Sun 02 Aug 2020 02:15:14 PM UTC
   
 
Category:  None Severity:  3 - Normal
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Release:  3.23.4
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Jun 2021 12:19:44 PM UTC, comment #1: 

Thank you for the patch - pushed to master.

Jose Riha <jose1711>
Group Member
Sun 02 Aug 2020 02:15:14 PM UTC, original submission:  

on running python rtupdate hooks, a Python script in solfege spits out these warnings:

/usr/share/solfege/solfege/mpd/lexer.py:166: SyntaxWarning: "is" with a
literal. Did you mean "=="?
  if notelen is 0:
/usr/share/solfege/solfege/mpd/lexer.py:186: SyntaxWarning: "is" with a
literal. Did you mean "=="?
  if skiplen is 0:


Debian bug #955170:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955170

Patch attached.

François Mazen <mzf>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #49606:  fix_python3_warning.diff added by mzf (899B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jose1711 (Posted a comment)
  • -email is unavailable- added by mzf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-06-21 jose1711 StatusNone Fixed
        Open/ClosedOpen Closed
    2020-08-02 mzf Attached File- Added fix_python3_warning.diff, #49606

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code