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:
|
else:
|
||||||
if self.app_import_path:
|
if self.app_import_path:
|
||||||
path, name = (
|
path, name = (
|
||||||
re.split(r":(?![\\/])", self.app_import_path, 1) + [None]
|
re.split(r":(?![\\/])", self.app_import_path, maxsplit=1) + [None]
|
||||||
)[:2]
|
)[:2]
|
||||||
import_name = prepare_import(path)
|
import_name = prepare_import(path)
|
||||||
app = locate_app(import_name, name)
|
app = locate_app(import_name, name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue