Skip to content

Commit 94047a5

Browse files
committed
bpo-38347: find Python scripts whose name contain a '-'
Allow Python scripts to contain a '-' in their filename when working recursively.
1 parent 2ea71a0 commit 94047a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/scripts/pathfix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def main():
8989
sys.exit(bad)
9090

9191

92-
ispythonprog = re.compile(r'^[a-zA-Z0-9_]+\.py$')
92+
ispythonprog = re.compile(r'^[a-zA-Z0-9_-]+\.py$')
9393

9494

9595
def ispython(name):

0 commit comments

Comments
 (0)