Skip to content

Commit

Permalink
fix py2
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed May 12, 2020
1 parent 2b4a537 commit 6eba819
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datadog_checks_base/datadog_checks/base/utils/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import requests
from requests import auth as requests_auth
from requests_toolbelt.adapters import host_header_ssl
from six import iteritems, string_types
from six import PY2, iteritems, string_types
from six.moves.urllib.parse import urlparse
from urllib3.exceptions import InsecureRequestWarning

Expand Down Expand Up @@ -501,4 +501,5 @@ class StandardFields(object):
pass


StandardFields.__doc__ = '\n'.join('- `{}`'.format(field) for field in STANDARD_FIELDS)
if not PY2:
StandardFields.__doc__ = '\n'.join('- `{}`'.format(field) for field in STANDARD_FIELDS)

0 comments on commit 6eba819

Please sign in to comment.