diff options
author | velom <velom@yandex-team.ru> | 2022-02-10 16:48:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:48 +0300 |
commit | 16695af126b81715716fd9708b2c9c82e8a60c9c (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 | |
parent | 094e560ec880abc6d1e7e01b0c29666385268eb8 (diff) | |
download | ydb-16695af126b81715716fd9708b2c9c82e8a60c9c.tar.gz |
Restoring authorship annotation for <velom@yandex-team.ru>. Commit 2 of 2.
-rw-r--r-- | build/rules/go/vendor.policy | 10 | ||||
-rw-r--r-- | contrib/python/ya.make | 2 | ||||
-rw-r--r-- | library/python/func/__init__.py | 6 | ||||
-rw-r--r-- | library/python/func/ut/test_func.py | 16 | ||||
-rw-r--r-- | library/python/ya.make | 2 |
5 files changed, 18 insertions, 18 deletions
diff --git a/build/rules/go/vendor.policy b/build/rules/go/vendor.policy index 70191f5751..3e9c0acada 100644 --- a/build/rules/go/vendor.policy +++ b/build/rules/go/vendor.policy @@ -130,10 +130,10 @@ ALLOW .* -> vendor/github.com/aws/aws-sdk-go/aws ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/s3 ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/sqs ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/kms -ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/ec2 +ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/ec2 ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/route53 ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/kinesis -ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/sts +ALLOW .* -> vendor/github.com/aws/aws-sdk-go/service/sts # TOML parser/encoder with reflection ALLOW .* -> vendor/github.com/BurntSushi/toml @@ -770,9 +770,9 @@ ALLOW .* -> vendor/github.com/aymerick/raymond # CONTRIB-2176 ALLOW .* -> vendor/github.com/masterzen/winrm -# CONTRIB-2267 -ALLOW .* -> vendor/github.com/apparentlymart/go-cidr - +# CONTRIB-2267 +ALLOW .* -> vendor/github.com/apparentlymart/go-cidr + # CONTRIB-2266 ALLOW .* -> vendor/github.com/vertica/vertica-sql-go diff --git a/contrib/python/ya.make b/contrib/python/ya.make index 14634173cb..d01ced9f3a 100644 --- a/contrib/python/ya.make +++ b/contrib/python/ya.make @@ -730,7 +730,7 @@ RECURSE( pdfminer.six pecan peewee - peewee/playhouse + peewee/playhouse pefile pem pexpect diff --git a/library/python/func/__init__.py b/library/python/func/__init__.py index cf9476e476..7424361635 100644 --- a/library/python/func/__init__.py +++ b/library/python/func/__init__.py @@ -156,9 +156,9 @@ def split(data, func): else: r.append(e) return l, r - - -def flatten_dict(dd, separator='.', prefix=''): + + +def flatten_dict(dd, separator='.', prefix=''): return ( { prefix + separator + k if prefix else k: v diff --git a/library/python/func/ut/test_func.py b/library/python/func/ut/test_func.py index e723d8081c..3c4fad1a07 100644 --- a/library/python/func/ut/test_func.py +++ b/library/python/func/ut/test_func.py @@ -124,14 +124,14 @@ def test_split(): assert func.split([1, 0, 1], lambda x: x) == ([1, 1], [0]) -def test_flatten_dict(): - assert func.flatten_dict({"a": 1, "b": 2}) == {"a": 1, "b": 2} - assert func.flatten_dict({"a": 1}) == {"a": 1} - assert func.flatten_dict({}) == {} - assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}) == {"a": 1, "b.c.d": 2} - assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}, separator="/") == {"a": 1, "b/c/d": 2} - - +def test_flatten_dict(): + assert func.flatten_dict({"a": 1, "b": 2}) == {"a": 1, "b": 2} + assert func.flatten_dict({"a": 1}) == {"a": 1} + assert func.flatten_dict({}) == {} + assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}) == {"a": 1, "b.c.d": 2} + assert func.flatten_dict({"a": 1, "b": {"c": {"d": 2}}}, separator="/") == {"a": 1, "b/c/d": 2} + + def test_memoize_thread_local(): class Counter(object): def __init__(self, s): diff --git a/library/python/ya.make b/library/python/ya.make index 9cbe192a3c..2e1eb6e0e1 100644 --- a/library/python/ya.make +++ b/library/python/ya.make @@ -193,7 +193,7 @@ RECURSE( tools_structured_logs thread thread/test - tskv + tskv tvmauth tvm2 tvm2/tests |