Remove some unnecessary uses of regular expressions (#101182)

This commit is contained in:
Ville Skyttä 2023-10-04 04:55:00 +03:00 committed by GitHub
parent 09ba34fb3a
commit 5551a345ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 16 deletions

View file

@ -173,8 +173,7 @@ async def main():
)
return
pyfile = re.compile(r".+\.py$")
pyfiles = [file for file in files if pyfile.match(file)]
pyfiles = [file for file in files if file.endswith(".py")]
print("=============================")
printc("bold", "CHANGED FILES:\n", "\n ".join(pyfiles))