8000 Get syntax compatible with python <2.7 · kespindler/influxdb-python@b6352ca · GitHub
[go: up one dir, main page]

Skip to content

Commit b6352ca

Browse files
Sergey V. YudinSergey V. Yudin
authored andcommitted
Get syntax compatible with python <2.7
1 parent d05359f commit b6352ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
except NameError:
1717
xrange = range
1818

19-
if version_info.major == 3:
19+
if version_info[0] == 3:
2020
from urllib.parse import urlparse
2121
else:
2222
from urlparse import urlparse

0 commit comments

Comments
 (0)
0