Skip to content

Commit 300fb83

Browse files
beezzfxdgear
authored andcommitted
Use relative imports in xpack module (elastic#898)
To be consistent with the other part of library and to allow vendoring without code change, use relative imports also in the ``elasticsearch.client.xpack`` module.
1 parent dfcaea6 commit 300fb83

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

elasticsearch/client/xpack/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params
1+
from ..utils import NamespacedClient, query_params
22

33
from .graph import GraphClient
44
from .license import LicenseClient

elasticsearch/client/xpack/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path
1+
from ..utils import NamespacedClient, query_params, _make_path
22

33
class DeprecationClient(NamespacedClient):
44
@query_params()

elasticsearch/client/xpack/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path
1+
from ..utils import NamespacedClient, query_params, _make_path
22

33
class GraphClient(NamespacedClient):
44
@query_params('routing', 'timeout')

elasticsearch/client/xpack/license.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
1+
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
22

33
class LicenseClient(NamespacedClient):
44
@query_params()

elasticsearch/client/xpack/migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
1+
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
22

33
class MigrationClient(NamespacedClient):
44
@query_params('allow_no_indices', 'expand_wildcards', 'ignore_unavailable')

elasticsearch/client/xpack/ml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
1+
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
22

33
class MlClient(NamespacedClient):
44
@query_params('from_', 'size')

elasticsearch/client/xpack/monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
1+
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
22

33
class MonitoringClient(NamespacedClient):
44
@query_params('interval', 'system_api_version', 'system_id')

elasticsearch/client/xpack/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
1+
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
22

33
class SecurityClient(NamespacedClient):
44
@query_params('refresh')

elasticsearch/client/xpack/watcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
1+
from ..utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
22

33
class WatcherClient(NamespacedClient):
44
@query_params()

0 commit comments

Comments
 (0)