forked from bartvdbraak/blender
Fix invalid string comparison
This commit is contained in:
parent
5c3953010d
commit
6af6ef9771
@ -118,7 +118,7 @@ def protect_format_seq(msg):
|
|||||||
dlt = 2
|
dlt = 2
|
||||||
while (idx + dlt) < ln and msg[idx + dlt] in digits:
|
while (idx + dlt) < ln and msg[idx + dlt] in digits:
|
||||||
dlt += 1
|
dlt += 1
|
||||||
if (idx + dlt) < ln and msg[idx + dlt] is '|':
|
if (idx + dlt) < ln and msg[idx + dlt] == '|':
|
||||||
dlt += 1
|
dlt += 1
|
||||||
# %.4f
|
# %.4f
|
||||||
elif idx < (ln - 3) and msg[idx] == '%' and msg[idx + 1] in digits:
|
elif idx < (ln - 3) and msg[idx] == '%' and msg[idx + 1] in digits:
|
||||||
|
Loading…
Reference in New Issue
Block a user