Docstring formatting

This commit is contained in:
Honza Král
2014-06-12 01:47:09 +02:00
parent e9bc9007ce
commit d8312e4c70
+6 -2
View File
@@ -142,7 +142,9 @@ class Elasticsearch(object):
@query_params() @query_params()
def ping(self, params=None): def ping(self, params=None):
""" Returns True if the cluster is up, False otherwise. """ """
Returns True if the cluster is up, False otherwise.
"""
try: try:
self.transport.perform_request('HEAD', '/', params=params) self.transport.perform_request('HEAD', '/', params=params)
except TransportError: except TransportError:
@@ -151,7 +153,9 @@ class Elasticsearch(object):
@query_params() @query_params()
def info(self, params=None): def info(self, params=None):
""" Get the basic info from the current cluster. """ """
Get the basic info from the current cluster.
"""
_, data = self.transport.perform_request('GET', '/', params=params) _, data = self.transport.perform_request('GET', '/', params=params)
return data return data