We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e2dd29 + 7092ef2 commit dcb446fCopy full SHA for dcb446f
influxdb/line_protocol.py
@@ -4,13 +4,14 @@
4
from calendar import timegm
5
from copy import copy
6
from datetime import datetime
7
+from numbers import Integral
8
9
from dateutil.parser import parse
10
from six import binary_type, text_type
11
12
13
def _convert_timestamp(timestamp, precision=None):
- if isinstance(timestamp, int):
14
+ if isinstance(timestamp, Integral):
15
return timestamp # assume precision is correct if timestamp is int
16
if isinstance(_get_unicode(timestamp), text_type):
17
timestamp = parse(timestamp)
0 commit comments