Skip to content

Commit dd206ad

Browse files
authored
Merge pull request elastic#1018 from XD-DENG/patch-1
Fix docstring typos in /elasticsearch/transport.py
2 parents edb4de7 + a2a6d52 commit dd206ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

elasticsearch/transport.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def __init__(
6767
:arg connection_class: subclass of :class:`~elasticsearch.Connection` to use
6868
:arg connection_pool_class: subclass of :class:`~elasticsearch.ConnectionPool` to use
6969
:arg host_info_callback: callback responsible for taking the node information from
70-
`/_cluser/nodes`, along with already extracted information, and
70+
`/_cluster/nodes`, along with already extracted information, and
7171
producing a list of arguments (same as `hosts` parameter)
7272
:arg sniff_on_start: flag indicating whether to obtain a list of nodes
73-
from the cluser at startup time
73+
from the cluster at startup time
7474
:arg sniffer_timeout: number of seconds between automatic sniffs
7575
:arg sniff_on_connection_fail: flag controlling if connection failure triggers a sniff
7676
:arg sniff_timeout: timeout used for the sniff request - it should be a
@@ -187,7 +187,7 @@ def _create_connection(host):
187187

188188
def get_connection(self):
189189
"""
190-
Retreive a :class:`~elasticsearch.Connection` instance from the
190+
Retrieve a :class:`~elasticsearch.Connection` instance from the
191191
:class:`~elasticsearch.ConnectionPool` instance.
192192
"""
193193
if self.sniffer_timeout:
@@ -197,7 +197,7 @@ def get_connection(self):
197197

198198
def _get_sniff_data(self, initial=False):
199199
"""
200-
Perform the request to get sniffins information. Returns a list of
200+
Perform the request to get sniffing information. Returns a list of
201201
dictionaries (one per node) containing all the information from the
202202
cluster.
203203
@@ -294,7 +294,7 @@ def perform_request(self, method, url, headers=None, params=None, body=None):
294294
If an exception was raised, mark the connection as failed and retry (up
295295
to `max_retries` times).
296296
297-
If the operation was succesful and the connection used was previously
297+
If the operation was successful and the connection used was previously
298298
marked as dead, mark it as live, resetting it's failure count.
299299
300300
:arg method: HTTP method to use

0 commit comments

Comments
 (0)