New submission from Rüdiger Plüm <r.pl...@gmx.de>:

Tools/scripts/pathfix.py does not find Python scripts that contain a '-' in 
their filename when working recursively.
This is caused by the regular expression used to detect whether a filename is a 
Python script:

r'^[a-zA-Z0-9_]+\.py$'

r'^[a-zA-Z0-9_-]+\.py$'

fixes this. I am not sure if you want to allow further characters in script 
names like spaces or other special characters. The pull request I will create 
will only fix the '-' issue.

----------
components: Demos and Tools
messages: 353728
nosy: rpluem
priority: normal
severity: normal
status: open
title: pathfix.py does not find Python scripts that have '-' in its filename
type: behavior
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38347>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to