Commit: 4ee293dd383cc09d1633506e7d1a6b416bbbe719
Author: Campbell Barton
Date:   Wed Apr 20 15:39:36 2022 +1000
Branches: draw-deferred-compilation-experiment
https://developer.blender.org/rB4ee293dd383cc09d1633506e7d1a6b416bbbe719

Cleanup: use autopep8 for bl_i18n_utils.settings

Disable autopep8 for some regex blocks that use indentation
to signify regex grouping.

===================================================================

M       release/scripts/modules/bl_i18n_utils/settings.py

===================================================================

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'

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to