You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def encode_greedy_from_dict(s, i, rev, a2i, info):
a = s[i:]
r = rev.get(a[0])
if r:
for k, v in r.items():
if a.startswith(k):
return [v + info.DICT_BASE_ENC], len(k)
and also L480
if a[0] == '[':
cmd, param = a[1:a.index(']')], None
cmdlen = len(cmd)
r = a2i.get(a[:cmdlen+2])
if r:
return [r], cmdlen+2
if ' ' in cmd:
cmd, param = cmd.split(' ', 1)
param = int(param)
return kEncoders[info.encoder](cmd, param), cmdlen + 2
else:
return [a2i[a[0]]], 1
Describe your bug here. And how to reproduce it.
Code on line 472:
if r := rev.get(a[0]):
:= is not correct syntax on a lot of python versions.
What is your build target?
Linux
The text was updated successfully, but these errors were encountered: