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>2018-12-19 03:38:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-19 03:38:20 +0300
commitbb4ed5ce39cb2c07bfd97deb46a30b5505bbbf76 (patch)
treeb9236763960d0ef89f6f545cc0b491c8c1613bb3 /release/scripts/modules
parentd760a6ed54956362d8883c4650d8a9779221413b (diff)
Fix invalid string comparison
Diffstat (limited to 'release/scripts/modules')
-rwxr-xr-xrelease/scripts/modules/bl_i18n_utils/utils_rtl.py2
1 files changed, 1 insertions, 1 deletions
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: