summaryrefslogtreecommitdiff
path: root/depcheck.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2020-10-17 07:22:14 +0200
committerHelmut Grohne <helmut@subdivi.de>2020-10-17 07:22:14 +0200
commit85b3a6ad3c31269d1e17d43cc8d7d626c38f4da1 (patch)
tree3dd1966f6b49a8e934916cbbc59d3961dddc91a0 /depcheck.py
parent91ae10f330cbc1c2238d2b75c6d2e4632209d0b5 (diff)
downloadcrossqa-85b3a6ad3c31269d1e17d43cc8d7d626c38f4da1.tar.gz
depcheck.py: avoid variable type change
mypy trips over bits changing the type from str to int.
Diffstat (limited to 'depcheck.py')
-rwxr-xr-xdepcheck.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/depcheck.py b/depcheck.py
index 7d2a8dc..4d6bcd0 100755
--- a/depcheck.py
+++ b/depcheck.py
@@ -70,8 +70,7 @@ class Architectures:
def read_abitable(self, abitable):
self.abitable.clear()
for arch, bits in self.read_table(abitable):
- bits = int(bits)
- self.abitable[arch] = bits
+ self.abitable[arch] = int(bits)
def match(self, arch, pattern):
parts = pattern.split("-")