forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-misc/ponysay: add Python 3.8, 3.9
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
7bb5f11
commit e24828d
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters