未验证 提交 311b4941 编写于 作者: J Jakub Wilk 提交者: Ansgar

match_architecture(): use == for string comparison

Fixes:

    daklib/architecture.py:113: SyntaxWarning: "is" with a literal. Did you mean "=="?

with Python >= 3.8.
上级 4800f574
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册