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

Support Python 3 #2964

Merged
merged 2 commits into from
Jan 18, 2019
Merged

Support Python 3 #2964

merged 2 commits into from
Jan 18, 2019

Conversation

nmuesch
Copy link
Collaborator

@nmuesch nmuesch commented Jan 17, 2019

What does this PR do?

Add python 3 support to tcp_check. Mostly was supported already, but required the name to be converted to unicode.

Motivation

🐍3️⃣

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
  • If PR adds a configuration option, it has been added to the configuration file.

Additional Notes

Anything else we should know when reviewing?

@codecov-io
Copy link

Codecov Report

Merging #2964 into master will decrease coverage by 8.26%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2964      +/-   ##
==========================================
- Coverage   84.79%   76.52%   -8.27%     
==========================================
  Files         654        4     -650     
  Lines       36319      115   -36204     
  Branches     4334        9    -4325     
==========================================
- Hits        30795       88   -30707     
+ Misses       4262       22    -4240     
+ Partials     1262        5    -1257

import socket
import time

# project
from datadog_checks.base import ensure_unicode
Copy link
Contributor

Choose a reason for hiding this comment

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

this will require pinning base check to >= 4.2.0

import socket
import time

# project
from datadog_checks.base import ensure_unicode
from datadog_checks.checks import NetworkCheck, Status
Copy link
Contributor

Choose a reason for hiding this comment

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

While you're pinning, let's import from the base submodule

@nmuesch nmuesch merged commit ab99941 into master Jan 18, 2019
@nmuesch nmuesch deleted the nick/tcp3 branch January 18, 2019 15:49
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.

3 participants