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

Added Python 3.3 support #23

Merged
merged 4 commits into from
Apr 3, 2014
Merged

Added Python 3.3 support #23

merged 4 commits into from
Apr 3, 2014

Conversation

pydeveloper94
Copy link
Contributor

Hi,

I've added Python 3.3 support to this project. All tests pass in versions 2.6, 2.7, and 3.3. Please look at the 2to3 branch for all changes.

@@ -384,6 +385,7 @@ def _aggregate(self, source, aggregators, data, result):

else:
# We found a leaf.
print(aggregators)
Copy link
Contributor

Choose a reason for hiding this comment

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

Leftover print statement

@pydeveloper94
Copy link
Contributor Author

Thank you thobbs. I just pushed the fixes.

self.graphite.log(prefix + self._sanitize(name), value)


def _addRule(self, isWhitelist, rule):
"""Add an (isWhitelist, rule) pair to the rule list."""
if isinstance(rule, basestring) or hasattr(rule, '__call__'):
if isinstance(rule, six.string_types[0]) or hasattr(rule, '__call__'):
Copy link
Contributor

Choose a reason for hiding this comment

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

isinstance() accepts a tuple for the second argument, so this could just be isinstance(rule, six.string_types).

@thobbs
Copy link
Contributor

thobbs commented Mar 20, 2014

@pydeveloper94 from my perspective, this should be looking pretty good after the last comments are addressed.

Dear project maintainers, how is this looking to you guys? We're in the process of adding Python 3 support to the Cassandra driver and this is a dependency. Let us know if there's anything you'd like done differently.

PeterScott added a commit that referenced this pull request Apr 3, 2014
@PeterScott PeterScott merged commit 10d7e50 into Cue:master Apr 3, 2014
@PeterScott
Copy link
Member

And now, after grabbing a few other pull requests and setting up Travis-CI testing, I've released a new version to PyPI that incorporates your Python 3 fixes. Thanks!

@thobbs
Copy link
Contributor

thobbs commented Apr 3, 2014

@PeterScott awesome, thanks very much! I really appreciate it, especially making a new release.

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.

3 participants