[Bf-blender-cvs] [aaa07a3a8f6] master: PyAPI: remove deprecated 'wiki_url' for add-ons 'bl_info'
Campbell Barton
noreply at git.blender.org
Wed May 12 14:06:51 CEST 2021
Commit: aaa07a3a8f6427a01ef1ffacc0733e82921b0a8a
Author: Campbell Barton
Date: Wed May 12 22:01:50 2021 +1000
Branches: master
https://developer.blender.org/rBaaa07a3a8f6427a01ef1ffacc0733e82921b0a8a
PyAPI: remove deprecated 'wiki_url' for add-ons 'bl_info'
This was only kept for compatibility with older add-ons and has been
deprecated since 2.83.
Ref T85675
===================================================================
M release/scripts/modules/addon_utils.py
===================================================================
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index 387691f9f05..1e308dc9602 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -543,22 +543,6 @@ def module_bl_info(mod, info_basis=None):
if not addon_info["name"]:
addon_info["name"] = mod.__name__
- # Replace 'wiki_url' with 'doc_url'.
- doc_url = addon_info.pop("wiki_url", None)
- if doc_url is not None:
- # Unlikely, but possible that both are set.
- if not addon_info["doc_url"]:
- addon_info["doc_url"] = doc_url
- if _bpy.app.debug:
- print(
- "Warning: add-on \"%s\": 'wiki_url' in 'bl_info' "
- "is deprecated please use 'doc_url' instead!\n"
- " %s" % (
- addon_info['name'],
- getattr(mod, "__file__", None),
- )
- )
-
doc_url = addon_info["doc_url"]
if doc_url:
doc_url_prefix = "{BLENDER_MANUAL_URL}"
More information about the Bf-blender-cvs
mailing list