Skip to content

Commit

Permalink
don't need items() when iterating over keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hsiaoyi0504 authored Aug 15, 2018
1 parent f3cb2fb commit ac841ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filebrowser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
filter_re = []
for exp in EXCLUDE:
filter_re.append(re.compile(exp))
for k, v in VERSIONS.items():
for k in VERSIONS:
exp = r'_{0}({1})'.format(k, '|'.join(EXTENSION_LIST))
filter_re.append(re.compile(exp))

Expand Down Expand Up @@ -93,7 +93,7 @@ def browse(request):
results_var = {'results_total': 0, 'results_current': 0, 'delete_total': 0,
'images_total': 0, 'select_total': 0}
counter = {}
for k, v in EXTENSIONS.items():
for k in EXTENSIONS:
counter[k] = 0

dir_list = os.listdir(abs_path)
Expand Down

0 comments on commit ac841ed

Please sign in to comment.