diff --git a/plugin_manager.py b/plugin_manager.py index 6c3d3c8..3cf728d 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -41,7 +41,9 @@ HEADERS = { "User-Agent": _env["user_agent_string"], } PLUGIN_DIRECTORY = _env["python_directory_user"] -_regexp_friendly_class_name_shortcut = lambda string: string.replace(".", "\.") +def _regexp_friendly_class_name_shortcut(string): return string.replace(".", "\.") + + REGEXP = { "plugin_api_version": re.compile(b"(?<=ba_meta require api )(.*)"), "plugin_entry_points": re.compile(