[Bug 1948723] Re: /usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:447: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma? raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \

Jason 1948723 at bugs.launchpad.net
Tue Dec 21 03:37:19 UTC 2021


I believe that the patch below will fix the issue:

--- /usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py.orig	2021-12-20 22:34:49.184112471 -0500
+++ /usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py	2021-12-20 22:33:33.374611161 -0500
@@ -445,7 +445,7 @@
             except KeyError as ex:
                 (strerror) = ex
                 raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \
-                    "definition of %s" (strerror, full_id))
+                    "definition of %s".format(strerror, full_id))

         value = attributes.get("action")
         if value:

-- 
You received this bug notification because you are a member of
Accessibility, which is subscribed to onboard in Ubuntu.
https://bugs.launchpad.net/bugs/1948723

Title:
  /usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:447:
  SyntaxWarning: 'str' object is not callable; perhaps you missed a
  comma?   raise Exceptions.LayoutFileError("Unrecognized modifier %s
  in" \

To manage notifications about this bug go to:
https://bugs.launchpad.net/onboard/+bug/1948723/+subscriptions




More information about the Ubuntu-accessibility-bugs mailing list