Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work in python3.x #8

Open
iwatobipen opened this issue Nov 23, 2016 · 4 comments
Open

Does not work in python3.x #8

iwatobipen opened this issue Nov 23, 2016 · 4 comments

Comments

@iwatobipen
Copy link

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

@giahung24
Copy link

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

@ArtemGuy
Copy link

ArtemGuy commented Mar 8, 2018

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

@kikikyaranusa
Copy link

kikikyaranusa commented Nov 22, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants