mirror of
https://github.com/onyx-and-iris/grokking-algorithms.git
synced 2024-11-15 17:30:52 +00:00
reword
This commit is contained in:
parent
33a56b2e20
commit
6b947083e4
@ -18,7 +18,7 @@ def files_with_extension(start_directory):
|
||||
items = queue.popleft()
|
||||
|
||||
for item in items.glob("*"):
|
||||
# if it is a file and has extension EXT then print
|
||||
# if item is a file and has extension EXT then print
|
||||
if item.is_file():
|
||||
if item.suffix == EXT:
|
||||
print(item)
|
||||
|
@ -12,7 +12,7 @@ scripts_path = Path.home() / "scripts"
|
||||
|
||||
def files_with_extension(directory):
|
||||
for item in directory.glob("*"):
|
||||
# if it is a file and has extension EXT then print
|
||||
# if item is a file and has extension EXT then print
|
||||
if item.is_file():
|
||||
if item.suffix == EXT:
|
||||
print(item)
|
||||
|
Loading…
Reference in New Issue
Block a user