Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 439f46c

Browse files
author
aviau
committed
isinstance: Use tuple
1 parent a17e743 commit 439f46c

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
@@ -211,7 +211,7 @@ def request(self, url, method='GET', params=None, data=None,
211211
if params is None:
212212
params = {}
213213

214-
if isinstance(data, dict) or isinstance(data, list):
214+
if isinstance(data, (dict, list)):
215215
data = json.dumps(data)
216216

217217
# Try to send the request a maximum of three times. (see #103)

0 commit comments

Comments
 (0)