Skip to content

[gardening] Python tidies in cmpcodesize.main #4477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions utils/cmpcodesize/cmpcodesize/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,10 @@ def main():
if len(old_files) != len(new_files):
sys.exit("number of new files must be the same of old files")

old_files.sort
new_files.sort
old_files.sort()
new_files.sort()

for idx, old_file in enumerate(old_files):
new_file = new_files[idx]
for old_file, new_file in zip(old_files, new_files):
compare_sizes_of_file([old_file], [new_file],
parsed_arguments.all_sections,
parsed_arguments.list_categories)
Expand Down