Skip to content

Commit 17e146a

Browse files
hauntsaninjadavidism
authored andcommitted
Pass maxsplit via kwarg to re.split
1 parent 8a72b74 commit 17e146a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flask/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def load_app(self) -> Flask:
302302
else:
303303
if self.app_import_path:
304304
path, name = (
305-
re.split(r":(?![\\/])", self.app_import_path, 1) + [None]
305+
re.split(r":(?![\\/])", self.app_import_path, maxsplit=1) + [None]
306306
)[:2]
307307
import_name = prepare_import(path)
308308
app = locate_app(import_name, name)

0 commit comments

Comments
 (0)