8000 Merge pull request #161 from tsipa/master · kespindler/influxdb-python@45049b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 45049b5

Browse files
committed
Merge pull request influxdata#161 from tsipa/master
Get syntax compatible with python <2.7 (Thanks @tsipa !)
2 parents d05359f + b6352ca commit 45049b5

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