mirror of
https://github.com/django/django.git
synced 2025-07-24 21:54:14 +00:00
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
This commit is contained in:
parent
b327a614eb
commit
4468c08d70
65 changed files with 169 additions and 169 deletions
|
@ -53,7 +53,7 @@ def main(argv=None):
|
|||
files = []
|
||||
for root in argv[1:]:
|
||||
for (dirpath, dirnames, filenames) in os.walk(root):
|
||||
files.extend([(dirpath, f) for f in filenames])
|
||||
files.extend((dirpath, f) for f in filenames)
|
||||
files.sort()
|
||||
files = [os.path.join(p, fn) for p, fn in files if fn.endswith('.txt')]
|
||||
#print files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue