[New-bugs-announce] [issue38347] pathfix.py does not find Python scripts that have '-' in its filename

Rüdiger Plüm report at bugs.python.org
Wed Oct 2 05:15:35 EDT 2019


New submission from Rüdiger Plüm <r.pluem at 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 <report at bugs.python.org>
<https://bugs.python.org/issue38347>
_______________________________________


More information about the New-bugs-announce mailing list