mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Simplify glob
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
6797e47458
commit
80a1238e2b
|
@ -1,6 +1,6 @@
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
for rst in Path("docs/releasenotes/").rglob("[1-9]*.rst"):
|
for rst in Path("docs/releasenotes").glob("[1-9]*.rst"):
|
||||||
if "TODO" in open(rst).read():
|
if "TODO" in open(rst).read():
|
||||||
sys.exit(f"Error: remove TODO from {rst}")
|
sys.exit(f"Error: remove TODO from {rst}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user