Pass maxsplit via kwarg to re.split

This commit is contained in:
hauntsaninja 2023-08-08 02:10:49 -07:00 committed by David Lord
parent 8a72b74161
commit 17e146ad94
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -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)