diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-07-07 00:00:44 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-07-07 00:11:16 +0300 |
commit | edf6d7d956f497ab1f719480a640c97cd3254adf (patch) | |
tree | 0c73b59d9d723b2635441331896066df8de57093 | |
parent | 04aeba3c56cde3b97696070cc47f4126612565bb (diff) | |
download | ydb-edf6d7d956f497ab1f719480a640c97cd3254adf.tar.gz |
Intermediate changes
3 files changed, 3 insertions, 3 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/canonical.py b/library/python/testing/yatest_common/yatest/common/canonical.py index c964b076cc..8408e0f68f 100644 --- a/library/python/testing/yatest_common/yatest/common/canonical.py +++ b/library/python/testing/yatest_common/yatest/common/canonical.py @@ -106,7 +106,7 @@ def canonical_execute( :param data_transformer: data modifier (before canonize) :return: object that can be canonized """ - if type(binary) == list: + if isinstance(binary, list): command = binary else: command = [binary] diff --git a/library/python/testing/yatest_common/yatest/common/process.py b/library/python/testing/yatest_common/yatest/common/process.py index 5c474390c2..a1054c8007 100644 --- a/library/python/testing/yatest_common/yatest/common/process.py +++ b/library/python/testing/yatest_common/yatest/common/process.py @@ -572,7 +572,7 @@ def execute( err_file, user_stderr = get_out_stream(stderr, 'err') in_file = stdin - if shell and type(command) == list: + if shell and isinstance(command, list): command = " ".join(command) if shell: diff --git a/library/python/testing/yatest_lib/tools.py b/library/python/testing/yatest_lib/tools.py index b72d79c162..48acbcf278 100644 --- a/library/python/testing/yatest_lib/tools.py +++ b/library/python/testing/yatest_lib/tools.py @@ -11,7 +11,7 @@ def to_utf8(value): if sys.version_info[0] < 3: if not isinstance(value, basestring): # noqa value = unicode(value) # noqa - if type(value) == str: + if isinstance(value, str): value = value.decode("utf-8", errors="ignore") return value.encode('utf-8', 'ignore') else: |