Fix invalid string comparison

This commit is contained in:
Campbell Barton 2018-12-19 11:38:20 +11:00
parent d760a6ed54
commit bb4ed5ce39
1 changed files with 1 additions and 1 deletions

View File

@ -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: