summaryrefslogtreecommitdiffstats
path: root/debian/patches/avoid-syntaxwarning-in-python-extension.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:05 +0000
commitefa1e916debcd95aa630404956ae3b086b17ac76 (patch)
treeda43204022e7e3f32b8f44a232536b8aeb02a81b /debian/patches/avoid-syntaxwarning-in-python-extension.patch
parentAdding upstream version 1.0.2. (diff)
downloadinkscape-efa1e916debcd95aa630404956ae3b086b17ac76.tar.xz
inkscape-efa1e916debcd95aa630404956ae3b086b17ac76.zip
Adding debian version 1.0.2-4.debian/1.0.2-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/avoid-syntaxwarning-in-python-extension.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/avoid-syntaxwarning-in-python-extension.patch b/debian/patches/avoid-syntaxwarning-in-python-extension.patch
new file mode 100644
index 0000000..c8556d4
--- /dev/null
+++ b/debian/patches/avoid-syntaxwarning-in-python-extension.patch
@@ -0,0 +1,26 @@
+Author: Mattia Rizzolo <mattia@debian.org>
+Description: Avoid SyntaxWarning in a python extension
+ I also reckon the chances of the check actually passing while using `is` to be quite low…
+Forwarded: no, this is already upstream but not (yet) in the 1.0.x branch.
+Last-Updated: 2020-09-10
+
+--- a/share/extensions/interp.py
++++ b/share/extensions/interp.py
+@@ -112,7 +112,7 @@
+ else:
+ fillstyle = 'color'
+
+- if strokestyle is 'color':
++ if strokestyle == 'color':
+ if sst['stroke'] == 'none':
+ sst['stroke-width'] = '0.0'
+ sst['stroke-opacity'] = '0.0'
+@@ -122,7 +122,7 @@
+ est['stroke-opacity'] = '0.0'
+ est['stroke'] = sst['stroke']
+
+- if fillstyle is 'color':
++ if fillstyle == 'color':
+ if sst['fill'] == 'none':
+ sst['fill-opacity'] = '0.0'
+ sst['fill'] = est['fill']