summaryrefslogtreecommitdiff
path: root/games-misc/ponysay/files/ponysay-py38.patch
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2020-12-13 12:56:23 +0000
committerdakkar <dakkar@thenautilus.net>2020-12-13 12:56:23 +0000
commitd94cf7dc7210ae70a71890b50f4160ebf9be75be (patch)
tree6695f67af28220632d30eec691b110fa7c46c27c /games-misc/ponysay/files/ponysay-py38.patch
parentput some stuff back in unstable (diff)
downloadgentoo-overlay-d94cf7dc7210ae70a71890b50f4160ebf9be75be.tar.gz
gentoo-overlay-d94cf7dc7210ae70a71890b50f4160ebf9be75be.tar.bz2
gentoo-overlay-d94cf7dc7210ae70a71890b50f4160ebf9be75be.zip
ponysay for python 3.8
Diffstat (limited to 'games-misc/ponysay/files/ponysay-py38.patch')
-rw-r--r--games-misc/ponysay/files/ponysay-py38.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/games-misc/ponysay/files/ponysay-py38.patch b/games-misc/ponysay/files/ponysay-py38.patch
new file mode 100644
index 0000000..6f9fee1
--- /dev/null
+++ b/games-misc/ponysay/files/ponysay-py38.patch
@@ -0,0 +1,33 @@
+From 69c23e3ae1e1e9e9f1ee3a06a706d755a4b1de48 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?M=C3=93ZES=20=C3=81d=C3=A1m=20Istv=C3=A1n?=
+ <mozes.adam.istvan@pm.me>
+Date: Sat, 16 Nov 2019 09:58:28 +0100
+Subject: [PATCH] fix: do not compare literal with "is not"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Python3.8 issued the following warning on each ponysay invocation:
+
+/bin/ponysay/backend.py:294: SyntaxWarning: "is not" with a literal. Did you mean "!="?
+
+This has been corrected here.
+
+Signed-off-by: MÓZES Ádám István <mozes.adam.istvan@pm.me>
+---
+ src/backend.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/backend.py b/src/backend.py
+index 2cc539a5..82ff1496 100644
+--- a/src/backend.py
++++ b/src/backend.py
+@@ -291,7 +291,7 @@ def __processPony(self):
+ props = dollar[7:]
+ if len(props) > 0:
+ if ',' in props:
+- if props[0] is not ',':
++ if props[0] != ',':
+ w = props[:props.index(',')]
+ h = int(props[props.index(',') + 1:])
+ else: