Remove some unnecessary uses of regular expressions (#101182)
This commit is contained in:
parent
09ba34fb3a
commit
5551a345ea
6 changed files with 6 additions and 16 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue