From 2b66fbe9e76a00b9a742334ae48672253d27a8ec Mon Sep 17 00:00:00 2001 From: Aleksei Pleshakov Date: Mon, 20 Mar 2023 19:25:14 +0300 Subject: [PATCH] Change ydb package imports to relative --- ydb/_errors.py | 2 +- ydb/scheme_test.py | 4 ++-- ydb/table_test.py | 2 +- ydb/tornado/tornado_helpers.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ydb/_errors.py b/ydb/_errors.py index ae3057b6..8c6f0720 100644 --- a/ydb/_errors.py +++ b/ydb/_errors.py @@ -1,7 +1,7 @@ from dataclasses import dataclass from typing import Optional -from ydb import issues +from . import issues _errors_retriable_fast_backoff_types = [ issues.Unavailable, diff --git a/ydb/scheme_test.py b/ydb/scheme_test.py index 79094882..d63850bf 100644 --- a/ydb/scheme_test.py +++ b/ydb/scheme_test.py @@ -1,9 +1,9 @@ -from ydb.scheme import ( +from .scheme import ( SchemeEntryType, _wrap_scheme_entry, _wrap_list_directory_response, ) -from ydb._apis import ydb_scheme +from ._apis import ydb_scheme def test_wrap_scheme_entry(): diff --git a/ydb/table_test.py b/ydb/table_test.py index 2cb2a6a0..8e93a698 100644 --- a/ydb/table_test.py +++ b/ydb/table_test.py @@ -1,5 +1,5 @@ from unittest import mock -from ydb import ( +from . import ( retry_operation_impl, YdbRetryOperationFinalResult, issues, diff --git a/ydb/tornado/tornado_helpers.py b/ydb/tornado/tornado_helpers.py index d63d4aed..973c4435 100644 --- a/ydb/tornado/tornado_helpers.py +++ b/ydb/tornado/tornado_helpers.py @@ -7,7 +7,7 @@ except ImportError: tornado = None -from ydb.table import retry_operation_impl, YdbRetryOperationSleepOpt +from .table import retry_operation_impl, YdbRetryOperationSleepOpt def as_tornado_future(foreign_future, timeout=None):