Skip to content

Commit

Permalink
STY: Apply ruff/pyupgrade rule UP028 (#12603)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed May 6, 2024
1 parent 7a4706b commit 1c5b39f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/dev/ensure_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
def get_paths_from_tree(root, level=0):
for entry in root:
if entry.type == "tree":
for x in get_paths_from_tree(entry, level + 1):
yield x
yield from get_paths_from_tree(entry, level + 1)
else:
yield Path(entry.path) # entry.type

Expand Down

0 comments on commit 1c5b39f

Please sign in to comment.