Skip to content

Commit

Permalink
Pass maxsplit via kwarg to re.split
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored and davidism committed Aug 16, 2023
1 parent 8a72b74 commit 17e146a
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 17e146a

Please sign in to comment.