diff options
author | massaraksh <massaraksh@yandex-team.ru> | 2022-02-10 16:47:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:49 +0300 |
commit | 8387f1fb70a4161b7581d3c0da52c4810df655be (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c | |
parent | 684ac31120ef65e34ba32b0324c42a4f921a14c4 (diff) | |
download | ydb-8387f1fb70a4161b7581d3c0da52c4810df655be.tar.gz |
Restoring authorship annotation for <massaraksh@yandex-team.ru>. Commit 2 of 2.
-rw-r--r-- | contrib/libs/libxml/dict.c | 4 | ||||
-rw-r--r-- | contrib/libs/libxml/rand.cpp | 20 | ||||
-rw-r--r-- | contrib/libs/libxml/rand.h | 30 | ||||
-rw-r--r-- | library/cpp/tvmauth/client/misc/api/settings.h | 12 | ||||
-rw-r--r-- | library/python/testing/yatest_lib/external.py | 18 |
5 files changed, 42 insertions, 42 deletions
diff --git a/contrib/libs/libxml/dict.c b/contrib/libs/libxml/dict.c index ce4d534177..63febfb00c 100644 --- a/contrib/libs/libxml/dict.c +++ b/contrib/libs/libxml/dict.c @@ -58,7 +58,7 @@ typedef unsigned __int32 uint32_t; #include <libxml/xmlmemory.h> #include <libxml/xmlerror.h> #include <libxml/globals.h> -#include "rand.h" +#include "rand.h" /* #define DEBUG_GROW */ /* #define DICT_DEBUG_PATTERNS */ @@ -185,7 +185,7 @@ int __xmlRandom(void) { if (xmlDictInitialized == 0) __xmlInitializeDict(); - return utilRandom(); + return utilRandom(); } #endif diff --git a/contrib/libs/libxml/rand.cpp b/contrib/libs/libxml/rand.cpp index 69541b6c3f..459a806e8e 100644 --- a/contrib/libs/libxml/rand.cpp +++ b/contrib/libs/libxml/rand.cpp @@ -1,10 +1,10 @@ -#include "rand.h" - -#include <cstdlib> -#include <util/random/random.h> -#include <util/system/types.h> - -int utilRandom() { - return (int)RandomNumber((ui32)RAND_MAX); -} - +#include "rand.h" + +#include <cstdlib> +#include <util/random/random.h> +#include <util/system/types.h> + +int utilRandom() { + return (int)RandomNumber((ui32)RAND_MAX); +} + diff --git a/contrib/libs/libxml/rand.h b/contrib/libs/libxml/rand.h index ff57844cf9..eab92ea13f 100644 --- a/contrib/libs/libxml/rand.h +++ b/contrib/libs/libxml/rand.h @@ -1,15 +1,15 @@ -#ifndef __XML_RAND_H__ -#define __XML_RAND_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -int utilRandom(); - -#ifdef __cplusplus -} -#endif - -#endif - +#ifndef __XML_RAND_H__ +#define __XML_RAND_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +int utilRandom(); + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/library/cpp/tvmauth/client/misc/api/settings.h b/library/cpp/tvmauth/client/misc/api/settings.h index dd89eaffd4..715ab3e02c 100644 --- a/library/cpp/tvmauth/client/misc/api/settings.h +++ b/library/cpp/tvmauth/client/misc/api/settings.h @@ -133,8 +133,8 @@ namespace NTvmAuth::NTvmApi { void SetTvmHostPort(const TString& host, ui16 port) { TvmHost = host; TvmPort = port; - } - + } + // Deprecated: set attributes directly void SetTiroleHostPort(const TString& host, ui16 port) { TiroleHost = host; @@ -238,12 +238,12 @@ namespace NTvmAuth::NTvmApi { const TString& GetTvmHost() const { return TvmHost; - } - + } + ui16 GetTvmPort() const { return TvmPort; - } - + } + bool IsRolesFetchingEnabled() const { return bool(FetchRolesForIdmSystemSlug); } diff --git a/library/python/testing/yatest_lib/external.py b/library/python/testing/yatest_lib/external.py index 73e8945d0a..39113230d9 100644 --- a/library/python/testing/yatest_lib/external.py +++ b/library/python/testing/yatest_lib/external.py @@ -1,7 +1,7 @@ from __future__ import absolute_import import re -import sys +import sys import copy import logging @@ -48,14 +48,14 @@ def apply(func, value, apply_to_keys=False): return _apply(func, value, None) -def is_coroutine(val): - if sys.version_info[0] < 3: - return False - else: - import asyncio +def is_coroutine(val): + if sys.version_info[0] < 3: + return False + else: + import asyncio return asyncio.iscoroutinefunction(val) or asyncio.iscoroutine(val) - - + + def serialize(value): """ Serialize value to json-convertible object @@ -75,7 +75,7 @@ def serialize(value): return dict(val) if isinstance(val, (date, datetime)): return repr(val) - if is_coroutine(val): + if is_coroutine(val): return None raise ValueError("Cannot serialize value '{}' of type {}".format(val, type(val))) return apply(_serialize, value, apply_to_keys=True) |