krita-data contains python files with incorrect syntax

Bug #1999305 reported by Mikko Rantalainen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
krita (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ apt policy krita krita-data
krita:
  Installed: 1:4.2.9+dfsg-1
  Candidate: 1:4.2.9+dfsg-1
  Version table:
 *** 1:4.2.9+dfsg-1 500
        500 http://fi.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status
krita-data:
  Installed: 1:4.2.9+dfsg-1
  Candidate: 1:4.2.9+dfsg-1
  Version table:
 *** 1:4.2.9+dfsg-1 500
        500 http://fi.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://fi.archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status

$ krita
...
/usr/lib/x86_64-linux-gnu/krita-python-libs/krita added to PYTHONPATH
/usr/share/krita/pykrita/comics_project_management_tools/comics_project_manager_docker.py:718: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if index.column() is 0:
/usr/share/krita/pykrita/comics_project_management_tools/comics_metadata_dialog.py:483: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if r is 0:
/usr/share/krita/pykrita/comics_project_management_tools/comics_metadata_dialog.py:617: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if config["readingDirection"] is "leftToRight":
/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:55: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 0:
/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:60: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 1:
/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:67: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 2:
/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:72: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 3:
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_Comic_Rack_XML_Exporter.py:107: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if str(authorDict["role"]).lower() is "cover artist":
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_Comic_Rack_XML_Exporter.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif str(authorDict["role"]).lower() is "assistant editor":
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_Comic_Rack_XML_Exporter.py:141: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_CoMet_XML_Exporter.py:115: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if str(authorDict["role"]).lower() is "cover artist":
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_CoMet_XML_Exporter.py:117: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif str(authorDict["role"]).lower() is "assistant editor":
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_CoMet_XML_Exporter.py:143: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_ACBF_XML_Exporter.py:276: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py:526: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:90: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 0:
/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:92: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 1:
/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:94: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 2:
/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:96: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 3:

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.