1 From 69c23e3ae1e1e9e9f1ee3a06a706d755a4b1de48 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?M=C3=93ZES=20=C3=81d=C3=A1m=20Istv=C3=A1n?=
3 <mozes.adam.istvan@pm.me>
4 Date: Sat, 16 Nov 2019 09:58:28 +0100
5 Subject: [PATCH] fix: do not compare literal with "is not"
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 Python3.8 issued the following warning on each ponysay invocation:
12 /bin/ponysay/backend.py:294: SyntaxWarning: "is not" with a literal. Did you mean "!="?
14 This has been corrected here.
16 Signed-off-by: MÓZES Ádám István <mozes.adam.istvan@pm.me>
19 1 file changed, 1 insertion(+), 1 deletion(-)
21 diff --git a/src/backend.py b/src/backend.py
22 index 2cc539a5..82ff1496 100644
25 @@ -291,7 +291,7 @@ class Backend():
29 - if props[0] is not ',':
31 w = props[:props.index(',')]
32 h = int(props[props.index(',') + 1:])