hualos icon indicating copy to clipboard operation
hualos copied to clipboard

Does not work in python3.x

Open iwatobipen opened this issue 8 years ago • 4 comments

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

iwatobipen avatar Nov 23 '16 13:11 iwatobipen

you can change with lines = ["%s: %s" % (v, k) for k, v in self.desc_map.items() if k]

giahung24 avatar Dec 08 '17 10:12 giahung24

I have the same problem. It's doesn't working

ArtemGuy avatar Mar 08 '18 09:03 ArtemGuy

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]

kikikyaranusa avatar Nov 22 '23 10:11 kikikyaranusa

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

kikikyaranusa avatar Nov 22 '23 10:11 kikikyaranusa