Skip to content

Commit f654716

Browse files
committed
Applied review changes
1 parent f8941fb commit f654716

File tree

1 file changed

+3
-3
lines changed
  • implement-shell-tools/wc

1 file changed

+3
-3
lines changed

implement-shell-tools/wc/wc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
if not args.w and not args.c and not args.l:
2929
args.w = args.c = args.l = True
30-
numbers = []
30+
per_file_totals = []
3131
output = []
3232
column_widths = []
3333
for path in args.path:
@@ -54,11 +54,11 @@
5454
output_for_one_file.append(file_size)
5555

5656
if len(args.path) > 1:
57-
numbers.append(output_for_one_file.copy())
57+
per_file_totals.append(output_for_one_file.copy())
5858
output_for_one_file.append(path)
5959
output.append(output_for_one_file)
6060
if len(args.path) > 1:
61-
total_results = [sum(i) for i in zip(*numbers)]
61+
total_results = [sum(i) for i in zip(*per_file_totals)]
6262
total_results.append("total")
6363
output.append(total_results)
6464

0 commit comments

Comments
 (0)