Verified Commit 6c241cb0 authored by Ansgar's avatar Ansgar

use `len(some_dict)` instead of `len(some_dict.keys())`

parent bfc67494
......@@ -346,7 +346,7 @@ def check_timestamps():
apt_inst.debExtract(f, Ent, "data.tar.gz")
count += 1
print("Checked %d files (out of %d)." % (count, len(db_files.keys())))
print("Checked %d files (out of %d)." % (count, len(db_files)))
################################################################################
......
......@@ -189,7 +189,7 @@ def parse_deb822(armored_contents, signing_rules=0, keyrings=None, session=None)
index += 1
indexed_lines[index] = line[:-1]
num_of_lines = len(indexed_lines.keys())
num_of_lines = len(indexed_lines)
index = 0
first = -1
while index < num_of_lines:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment