Skip to content
Myr

Pass maxsplit via kwarg to re.split

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by hauntsaninja · committed by David Lord · parent 8a72b74 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/flask/cli.py+1 added-1 removed
300 unmodified lines
301 app = self.create_app()302 else:303 if self.app_import_path:304 path, name = (305 re.split(r":(?![\\/])", self.app_import_path, 1) + [None]305 re.split(r":(?![\\/])", self.app_import_path, maxsplit=1) + [None]306 )[:2]307 import_name = prepare_import(path)308 app = locate_app(import_name, name)309 else:
758 unmodified lines