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:
Ruediger Pluem 2019-10-11 15:36:50 +02:00 committed by Victor Stinner
parent cbb548130c
commit 2b7dc40b2a
3 changed files with 30 additions and 10 deletions

View file

@ -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):