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 <campbell@blender.org>2022-04-20 08:39:36 +0300
committerCampbell Barton <campbell@blender.org>2022-04-20 08:39:36 +0300
commit8ed8fa80f449f2fb88bd0f1e4665e7e3bd0dae6a (patch)
tree4b5c6ba40a2dbc27abffa2c70521ef3fb6875211
parent08dbd3bc7fd3bfd0b38bf15039c4561e7e21f7b9 (diff)
Cleanup: use autopep8 for bl_i18n_utils.settings
Disable autopep8 for some regex blocks that use indentation to signify regex grouping.
-rw-r--r--release/scripts/modules/bl_i18n_utils/settings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py
index ef481a3eb19..a51c48ad5d1 100644
--- a/release/scripts/modules/bl_i18n_utils/settings.py
+++ b/release/scripts/modules/bl_i18n_utils/settings.py
@@ -192,6 +192,8 @@ PYGETTEXT_CONTEXTS_DEFSRC = os.path.join("source", "blender", "blentranslation",
# XXX Not full-proof, but should be enough here!
PYGETTEXT_CONTEXTS = "#define\\s+(BLT_I18NCONTEXT_[A-Z_0-9]+)\\s+\"([^\"]*)\""
+# autopep8: off
+
# Keywords' regex.
# XXX Most unfortunately, we can't use named backreferences inside character sets,
# which makes the regexes even more twisty... :/
@@ -256,6 +258,9 @@ PYGETTEXT_KEYWORDS = (() +
for it in ("BLT_I18N_MSGID_MULTI_CTXT",))
)
+# autopep8: on
+
+
# Check printf mismatches between msgid and msgstr.
CHECK_PRINTF_FORMAT = (
r"(?!<%)(?:%%)*%" # Beginning, with handling for crazy things like '%%%%%s'