From 24b8ccaa94a66a3552dc7100996d83d492a55ada Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 30 Aug 2022 16:15:45 +1000 Subject: Cleanup: format --- .../scripts/modules/bl_i18n_utils/bl_extract_messages.py | 15 +++++++++++++-- release/scripts/startup/bl_ui/space_userpref.py | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'release') diff --git a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py index 683ca2bc5fe..dea538af39b 100644 --- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -97,7 +97,7 @@ def check(check_ctxt, msgs, key, msgsrc, settings): if key in py_in_rna[1]: py_in_rna[0].add(key) if not_capitalized is not None: - if(key[1] not in settings.WARN_MSGID_NOT_CAPITALIZED_ALLOWED and + if (key[1] not in settings.WARN_MSGID_NOT_CAPITALIZED_ALLOWED and key[1][0].isalpha() and not key[1][0].isupper()): not_capitalized.add(key) if end_point is not None: @@ -909,7 +909,18 @@ def dump_template_messages(msgs, reports, settings): def dump_addon_bl_info(msgs, reports, module, settings): for prop in ('name', 'location', 'description'): - process_msg(msgs, settings.DEFAULT_CONTEXT, module.bl_info[prop], "Add-on " + module.bl_info['name'] + " info: " + prop, reports, None, settings) + process_msg( + msgs, + settings.DEFAULT_CONTEXT, + module.bl_info[prop], + "Add-on " + + module.bl_info['name'] + + " info: " + + prop, + reports, + None, + settings, + ) ##### Main functions! ##### diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 1b71b503eb7..ed014b57aa4 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1933,7 +1933,7 @@ class USERPREF_PT_addons(AddOnPanel, Panel): (info["author"] and (search in info["author"].lower())) or ((filter == "All") and (search in info["category"].lower() or search in iface_(info["category"]).lower())) - ): + ): continue # Addon UI Code -- cgit v1.2.3