[Bf-blender-cvs] [bb4ed5ce39c] blender2.8: Fix invalid string comparison

Campbell Barton noreply at git.blender.org
Wed Dec 19 01:38:57 CET 2018


Commit: bb4ed5ce39cb2c07bfd97deb46a30b5505bbbf76
Author: Campbell Barton
Date:   Wed Dec 19 11:38:20 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBbb4ed5ce39cb2c07bfd97deb46a30b5505bbbf76

Fix invalid string comparison

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

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

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

diff --git a/release/scripts/modules/bl_i18n_utils/utils_rtl.py b/release/scripts/modules/bl_i18n_utils/utils_rtl.py
index c446182dfc0..433c7f203de 100755
--- a/release/scripts/modules/bl_i18n_utils/utils_rtl.py
+++ b/release/scripts/modules/bl_i18n_utils/utils_rtl.py
@@ -118,7 +118,7 @@ def protect_format_seq(msg):
             dlt = 2
             while (idx + dlt) < ln and msg[idx + dlt] in digits:
                 dlt += 1
-            if (idx + dlt) < ln and msg[idx + dlt] is '|':
+            if (idx + dlt) < ln and msg[idx + dlt] == '|':
                 dlt += 1
         # %.4f
         elif idx < (ln - 3) and msg[idx] == '%' and msg[idx + 1] in digits:



More information about the Bf-blender-cvs mailing list