Skip to content

Commit 6d90ef7

Browse files
authored
Merge pull request influxdata#831 from antimirov/patch-1
Fix influxdata#828 "Context manager for InfluxDBClient not working correctly?"
2 parents cf51d02 + de5878a commit 6d90ef7

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
@@ -179,7 +179,7 @@ def __init__(self,
179179

180180
def __enter__(self):
181181
"""Enter function as used by context manager."""
182-
pass
182+
return self
183183

184184
def __exit__(self, _exc_type, _exc_value, _traceback):
185185
"""Exit function as used by context manager."""

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