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

Add python3 support #2497

Merged
merged 2 commits into from
Nov 1, 2018
Merged

Add python3 support #2497

merged 2 commits into from
Nov 1, 2018

Conversation

nmuesch
Copy link
Contributor

@nmuesch nmuesch commented Oct 31, 2018

What does this PR do?

Add support for Python3 for apache integration

Motivation

More python3 support

Review checklist

  • PR has a meaningful title or PR has the no-changelog label attached
  • Feature or bugfix has tests
  • Git history is clean
  • If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes

Anything else we should know when reviewing?

Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -93,7 +89,7 @@ def check(self, instance):
metric_count = 0
# Loop through and extract the numerical values
for line in response.splitlines():
Copy link
Contributor

Choose a reason for hiding this comment

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

for line in r.iter_lines(decode_unicode=True):

@@ -93,7 +89,7 @@ def check(self, instance):
metric_count = 0
# Loop through and extract the numerical values
for line in response.splitlines():
values = line.split(': ')
values = line.decode().split(': ')
Copy link
Contributor

Choose a reason for hiding this comment

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

then change this back

@@ -9,6 +9,8 @@
import time
import logging

from six.moves import xrange
Copy link
Contributor

Choose a reason for hiding this comment

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

just change everything to range

@codecov-io
Copy link

Codecov Report

Merging #2497 into master will increase coverage by 8.12%.
The diff coverage is 80%.

@@            Coverage Diff             @@
##           master    #2497      +/-   ##
==========================================
+ Coverage   84.59%   92.71%   +8.12%     
==========================================
  Files         622        4     -618     
  Lines       34675      151   -34524     
  Branches     4205       17    -4188     
==========================================
- Hits        29332      140   -29192     
+ Misses       4084        7    -4077     
+ Partials     1259        4    -1255

Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

🥇

@nmuesch nmuesch merged commit 21780dc into master Nov 1, 2018
@nmuesch nmuesch deleted the nick/apache_py3 branch November 1, 2018 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants