File: 1006_fix-str-not-callable-in-LayoutLoaderSVG-py.patch

package info (click to toggle)
onboard 1.4.1-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,828 kB
  • sloc: python: 28,321; cpp: 5,965; ansic: 5,739; xml: 1,026; javascript: 263; sh: 163; makefile: 68
file content (15 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Python syntax fix
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Forwarded: pending, upstream maintainer is MIA

--- a/Onboard/LayoutLoaderSVG.py
+++ b/Onboard/LayoutLoaderSVG.py
@@ -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: