Skip to content

Commit a5b9a79

Browse files
committed
Used six for compatibility
1 parent f08bc34 commit a5b9a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

influxdb/line_protocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from numbers import Integral
88

99
from dateutil.parser import parse
10-
from six import binary_type, text_type
10+
from six import binary_type, text_type, integer_types
1111

1212

1313
def _convert_timestamp(timestamp, precision=None):
@@ -59,7 +59,7 @@ def _escape_value(value):
5959
"\n", "\\n"
6060
)
6161
)
62-
if isinstance(value, int):
62+
elif isinstance(value, integer_types):
6363
return str(value) + 'i'
6464
else:
6565
return str(value)

0 commit comments

Comments
 (0)