diff options
author | 2021-01-12 13:37:22 +0000 | |
---|---|---|
committer | 2021-01-12 15:22:04 +0000 | |
commit | e24828d13b13b5b885f1945cb16e45a23c9df1c1 (patch) | |
tree | 0422604536540e02ff9e27b9fa35fbfe3b9abc0b /games-misc/ponysay/files | |
parent | app-shells/bash: Removed last occurance of emktemp (diff) | |
download | gentoo-e24828d13b13b5b885f1945cb16e45a23c9df1c1.tar.gz gentoo-e24828d13b13b5b885f1945cb16e45a23c9df1c1.tar.bz2 gentoo-e24828d13b13b5b885f1945cb16e45a23c9df1c1.zip |
games-misc/ponysay: add Python 3.8, 3.9
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc/ponysay/files')
-rw-r--r-- | games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch b/games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch new file mode 100644 index 000000000000..de35149fcdff --- /dev/null +++ b/games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch @@ -0,0 +1,38 @@ +https://github.com/erkin/ponysay/commit/f9154fd806bbf31c79b1769b13d5aa1b67f9c06a.patch +(and an additional fix) + +From f9154fd806bbf31c79b1769b13d5aa1b67f9c06a Mon Sep 17 00:00:00 2001 +From: adasiko <adasiko256@yandex.ru> +Date: Sun, 22 Mar 2020 19:33:28 +0700 +Subject: [PATCH] fix: do not compare literal with "is not" + +--- + src/ponysaytool.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ponysaytool.py b/src/ponysaytool.py +index 7f9a4da5..574a2baa 100755 +--- a/src/ponysaytool.py ++++ b/src/ponysaytool.py +@@ -1002,7 +1002,7 @@ def alert(text): + for row in range(0, len(datalines)): + current = leftlines[row] + if len(datalines[row].strip()) == 0: +- if current is not 'comment': ++ if current != 'comment': + if current != last: + self.datamap[current] = None + continue +diff --git a/src/backend.py b/src/backend.py +index 2cc539a..82ff149 100755 +--- a/src/backend.py ++++ b/src/backend.py +@@ -291,7 +291,7 @@ class Backend(): + 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: |