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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy