Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-01-22 01:50:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-22 02:00:40 +0300
commit56fc812d1eb41414bf40f856624b84c0af937da7 (patch)
treef2649f05901984538b780b924d2f44a7f9192674 /release
parentd9c962a367803134a3925c77d7d5c318339a01b9 (diff)
Fix manual lookups (data is now lowercase)
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/wm.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index c8c85837539..2f3569338d5 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -988,9 +988,12 @@ class WM_OT_doc_view_manual(Operator):
def _find_reference(rna_id, url_mapping, verbose=True):
if verbose:
print("online manual check for: '%s'... " % rna_id)
- from fnmatch import fnmatch
+ from fnmatch import fnmatchcase
+ # XXX, for some reason all RNA ID's are stored lowercase
+ # Adding case into all ID's isn't worth the hassle so force lowercase.
+ rna_id = rna_id.lower()
for pattern, url_suffix in url_mapping:
- if fnmatch(rna_id, pattern):
+ if fnmatchcase(rna_id, pattern):
if verbose:
print(" match found: '%s' --> '%s'" % (pattern, url_suffix))
return url_suffix