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
Priority:  5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  3.23.4
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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.debi ... rt.cgi?bug=955170

Patch attached.

François Mazen <mzf>

 

Attached Files

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

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    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.16-a7ba.
    Corresponding source code