[PATCH] match_architecture(): use == for string comparison
Fixes:
daklib/architecture.py:113: SyntaxWarning: "is" with a literal. Did you mean "=="?
with Python >= 3.8.
---
daklib/architecture.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daklib/architecture.py b/daklib/architecture.py
index e148f27b3..112265856 100644
--- a/daklib/architecture.py
+++ b/daklib/architecture.py
@@ -110,7 +110,7 @@ def match_architecture(arch, wildcard):
# 'all' has no valid tuple
if arch == 'all' or wildcard == 'all':
return arch == wildcard
- if wildcard is 'any' or arch == wildcard:
+ if wildcard == 'any' or arch == wildcard:
return True
tuple_arch = Debian_arch_to_Debian_tuple(arch)
--
2.26.2
Reply to: