Skip to content

Commit

Permalink
Pass maxsplit via kwarg to re.split (#5215)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Aug 16, 2023
2 parents 8a72b74 + 17e146a commit 6d266f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def load_app(self) -> Flask:
else:
if self.app_import_path:
path, name = (
re.split(r":(?![\\/])", self.app_import_path, 1) + [None]
re.split(r":(?![\\/])", self.app_import_path, maxsplit=1) + [None]
)[:2]
import_name = prepare_import(path)
app = locate_app(import_name, name)
Expand Down

0 comments on commit 6d266f6

Please sign in to comment.