Skip to content

Commit 54eb8bc

Browse files
author
aviau
committed
from_DSN: Improved docstring for sphinx
1 parent 0e4bf34 commit 54eb8bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

influxdb/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ def from_DSN(dsn, **kwargs):
117117
also be passed to this function.
118118
119119
Examples:
120-
>>> cli = InfluxDBClient.from_DSN('influxdb://username:password@
121-
localhost:8086/databasename', timeout=5)
120+
>>> cli = InfluxDBClient.from_DSN('influxdb://username:password@\
121+
localhost:8086/databasename', timeout=5)
122122
>>> type(cli)
123123
<class 'influxdb.client.InfluxDBClient'>
124124
>>> cli = InfluxDBClient.from_DSN('udp+influxdb://username:pass@\
125-
localhost:8086/databasename', timeout=5, udp_port=159)
125+
localhost:8086/databasename', timeout=5, udp_port=159)
126126
>>> print('{0._baseurl} - {0.use_udp} {0.udp_port}'.format(cli))
127127
http://localhost:8086 - True 159
128128

0 commit comments

Comments
 (0)