Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d90ef7

Browse filesBrowse 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
Copy full SHA for 6d90ef7

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎influxdb/client.py

Copy file name to clipboardExpand all lines: influxdb/client.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.