forked from orbit-oss/flask
Pass maxsplit via kwarg to re.split
This commit is contained in:
parent
8a72b74161
commit
17e146ad94
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ class ScriptInfo:
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue