From 0b7f7672d0347b96574653b747712a9455ebaa81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 28 Apr 2014 19:19:02 +0200 Subject: [PATCH] Remove trailing whitespaces in cat client --- elasticsearch/client/cat.py | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/elasticsearch/client/cat.py b/elasticsearch/client/cat.py index 65ee1cc4..a874bd3e 100644 --- a/elasticsearch/client/cat.py +++ b/elasticsearch/client/cat.py @@ -13,12 +13,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', _make_path('_cat', 'aliases', name), params=params) return data - + @query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'v') def allocation(self, node_id=None, params=None): """ @@ -35,12 +35,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', _make_path('_cat', 'allocation', node_id), params=params) return data - + @query_params('h', 'help', 'local', 'master_timeout', 'v') def count(self, index=None, params=None): """ @@ -56,12 +56,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', _make_path('_cat', 'count', index), params=params) return data - + @query_params('h', 'help', 'local', 'master_timeout', 'ts', 'v') def health(self, params=None): """ @@ -76,23 +76,23 @@ class CatClient(NamespacedClient): :arg master_timeout: Explicit operation timeout for connection to master node :arg ts: Set to false to disable timestamping, default True - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', '/_cat/health', params=params) return data - + @query_params('help') def help(self, params=None): """ A simple help for the cat api. ``_ - :arg help: Return help information, default False + :arg help: Return help information, default False """ _, data = self.transport.perform_request('GET', '/_cat', params=params) return data - + @query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'pri', 'v') def indices(self, index=None, params=None): """ @@ -110,12 +110,12 @@ class CatClient(NamespacedClient): node :arg pri: Set to true to return stats only for primary shards, default False - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', _make_path('_cat', 'indices', index), params=params) return data - + @query_params('h', 'help', 'local', 'master_timeout', 'v') def master(self, params=None): """ @@ -128,12 +128,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', '/_cat/master', params=params) return data - + @query_params('h', 'help', 'local', 'master_timeout', 'v') def nodes(self, params=None): """ @@ -146,12 +146,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', '/_cat/nodes', params=params) return data - + @query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'v') def recovery(self, index=None, params=None): """ @@ -167,12 +167,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', _make_path('_cat', 'recovery', index), params=params) return data - + @query_params('h', 'help', 'local', 'master_timeout', 'v') def shards(self, index=None, params=None): """ @@ -187,7 +187,7 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', _make_path('_cat', 'shards', index), params=params) @@ -206,12 +206,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', _make_path('_cat', 'segments', index), params=params) return data - + @query_params('h', 'help', 'local', 'master_timeout', 'v') def pending_tasks(self, params=None): """ @@ -226,12 +226,12 @@ class CatClient(NamespacedClient): master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node - :arg v: Verbose mode. Display column headers, default False + :arg v: Verbose mode. Display column headers, default False """ _, data = self.transport.perform_request('GET', '/_cat/pending_tasks', params=params) return data - + @query_params('full_id', 'h', 'help', 'local', 'master_timeout', 'v') def thread_pool(self, params=None): """