diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-19 03:38:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-19 03:39:24 +0300 |
commit | 6af6ef977187731d9ed4a6f633611830efdc7441 (patch) | |
tree | 57054d5df1e9db7da7ffe9eeacb977e22802a133 /release | |
parent | 5c3953010dca1f9e05ef4b654d957c5f15e91722 (diff) |
Fix invalid string comparison
Diffstat (limited to 'release')
-rwxr-xr-x | release/scripts/modules/bl_i18n_utils/utils_rtl.py | 2 |
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: |