mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-38347: find pathfix for Python scripts whose name contain a '-' (GH-16536)
pathfix.py: Assume all files that end on '.py' are Python scripts when working recursively.
This commit is contained in:
parent
cbb548130c
commit
2b7dc40b2a
3 changed files with 30 additions and 10 deletions
|
@ -89,11 +89,8 @@ def main():
|
|||
sys.exit(bad)
|
||||
|
||||
|
||||
ispythonprog = re.compile(r'^[a-zA-Z0-9_]+\.py$')
|
||||
|
||||
|
||||
def ispython(name):
|
||||
return bool(ispythonprog.match(name))
|
||||
return name.endswith('.py')
|
||||
|
||||
|
||||
def recursedown(dirname):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue