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>2021-10-24 11:12:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-24 13:04:04 +0300
commite288e392a8c3100cb60f6b7659323905e47c72b8 (patch)
tree18f760e31fcf597c080d691d62527ad7b3db2ee2 /release/scripts/modules/bl_i18n_utils
parentdc2524eaaeb121aa48c5b81de67d3ede8a319123 (diff)
Cleanup: line length in Python scripts
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils')
-rw-r--r--release/scripts/modules/bl_i18n_utils/bl_extract_messages.py9
1 files changed, 7 insertions, 2 deletions
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 6c9c212387e..49dbac1d502 100644
--- a/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
+++ b/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py
@@ -743,7 +743,9 @@ def dump_src_messages(msgs, reports, settings):
def clean_str(s):
# The encode/decode to/from 'raw_unicode_escape' allows to transform the C-type unicode hexadecimal escapes
# (like '\u2715' for the '×' symbol) back into a proper unicode character.
- return "".join(m.group("clean") for m in _clean_str(s)).encode('raw_unicode_escape').decode('raw_unicode_escape')
+ return "".join(
+ m.group("clean") for m in _clean_str(s)
+ ).encode('raw_unicode_escape').decode('raw_unicode_escape')
def dump_src_file(path, rel_path, msgs, reports, settings):
def process_entry(_msgctxt, _msgid):
@@ -870,7 +872,10 @@ def dump_messages(do_messages, do_checks, settings):
dump_src_messages(msgs, reports, settings)
# Get strings from addons' categories.
- for uid, label, tip in bpy.types.WindowManager.addon_filter.keywords['items'](bpy.context.window_manager, bpy.context):
+ for uid, label, tip in bpy.types.WindowManager.addon_filter.keywords['items'](
+ bpy.context.window_manager,
+ bpy.context,
+ ):
process_msg(msgs, settings.DEFAULT_CONTEXT, label, "Add-ons' categories", reports, None, settings)
if tip:
process_msg(msgs, settings.DEFAULT_CONTEXT, tip, "Add-ons' categories", reports, None, settings)