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

Updated to work with python3 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jamespcole
Copy link

Backwards compatibility with python2 is maintained

@@ -60,7 +60,12 @@ def __init__(self, api, **kwargs):
self._update_attrs(kwargs)

def _update_attrs(self, attrs):
for k, v in attrs.iteritems():
try:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid checking for items/iteritems everywhere, let's just use items everywhere (it works in both 2 and 3, and for the amount of data that's likely to be handled here, just as well).

@senko
Copy link
Member

senko commented Aug 4, 2015

Hey @jamespcole thanks for the pull request! I have a couple of comments about it (see above), if you could address those concerns I'll be happy to merge.

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants