hualos
hualos copied to clipboard
Does not work in python3.x
Dear, I tried to run the call back method in python3.5. It did not work and I think the reason is following line. api.py
lines = ["%s: %s" % (v, k)
for k, v in self.desc_map.iteritems() if k]
In python3.x, iteritems renamed items. I wonder if you could fix this issue. Best, Takayuki
you can change with
lines = ["%s: %s" % (v, k) for k, v in self.desc_map.items() if k]
I have the same problem. It's doesn't working
the question is almost 5 years old, but I hope this may help someone else
lines = ["%s: %s" % (v, k)
-- for k, v in self.desc_map.iteritems() if k]
++ for k, v in self.desc_map.items() if k]
change this line
for k, v in self.desc_map.iteritems() if k]
with
for k, v in self.desc_map.items() if k]
it works vell for me