Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

Python 3 support #38

Merged
merged 5 commits into from
Aug 14, 2015
Merged

Python 3 support #38

merged 5 commits into from
Aug 14, 2015

Conversation

maratkomarov
Copy link
Contributor

This PR adds Python 2 / 3 support

No license found, adding one.
PyChef now supports both Python 2/3.
New dependency `six` for 2/3 compatibility
@coderanger
Copy link
Owner

As it stands this has a ton of semantics changes on Python 2. It would need massive cleanup to be viable. A good start though!

@@ -80,7 +87,7 @@ def __init__(self, url, key, client, version='0.10.8', headers={}):
self.key = key
self.client = client
self.version = version
self.headers = dict((k.lower(), v) for k, v in headers.iteritems())
self.headers = dict((k.lower(), v) for k, v in headers.items())
Copy link
Owner

Choose a reason for hiding this comment

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

This would have to use six.iteritems to match semantics on Python 2. This is a common issue below so not pointing out each instance.

@maratkomarov
Copy link
Contributor Author

@coderanger we've spread six usage and removed formatting changes, unrelated to the topic. Take a look.

@coderanger
Copy link
Owner

Awesome, thanks for doing this!

coderanger added a commit that referenced this pull request Aug 14, 2015
@coderanger coderanger merged commit e42a551 into coderanger:master Aug 14, 2015
@maratkomarov maratkomarov deleted the feature/FAM-102 branch August 14, 2015 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants