diff options
author | Aleksandr <ivansduck@gmail.com> | 2022-02-10 16:47:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:52 +0300 |
commit | ea6c5b7f172becca389cacaff7d5f45f6adccbe6 (patch) | |
tree | d16cef493ac1e092b4a03ab9437ec06ffe3d188f /contrib/python | |
parent | 37de222addabbef336dcaaea5f7c7645a629fc6d (diff) | |
download | ydb-ea6c5b7f172becca389cacaff7d5f45f6adccbe6.tar.gz |
Restoring authorship annotation for Aleksandr <ivansduck@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'contrib/python')
-rw-r--r-- | contrib/python/botocore/botocore/loaders.py | 2 | ||||
-rw-r--r-- | contrib/python/cffi/lsan.supp | 4 | ||||
-rw-r--r-- | contrib/python/cffi/ya.make | 4 | ||||
-rw-r--r-- | contrib/python/ipdb/ya.make | 18 | ||||
-rw-r--r-- | contrib/python/py/py/_vendored_packages/iniconfig/__init__.py | 16 | ||||
-rw-r--r-- | contrib/python/pytest/py2/_pytest/python.py | 50 | ||||
-rw-r--r-- | contrib/python/pytest/py3/_pytest/python.py | 50 | ||||
-rw-r--r-- | contrib/python/six/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/toml/LICENSE | 42 | ||||
-rw-r--r-- | contrib/python/toml/ya.make | 18 | ||||
-rw-r--r-- | contrib/python/traitlets/py2/tests/ya.make | 2 | ||||
-rw-r--r-- | contrib/python/ya.make | 84 |
12 files changed, 146 insertions, 146 deletions
diff --git a/contrib/python/botocore/botocore/loaders.py b/contrib/python/botocore/botocore/loaders.py index 8eaf58aab7..59f99ce830 100644 --- a/contrib/python/botocore/botocore/loaders.py +++ b/contrib/python/botocore/botocore/loaders.py @@ -207,7 +207,7 @@ class HybridJsonLoader(JSONFileLoader): @classmethod def path_in_arcadia_resources(cls, file_path): for prefix in cls.arcadia_resources_path: - path = '{}{}.json'.format(prefix, file_path) + path = '{}{}.json'.format(prefix, file_path) if path in resource.resfs_files(): return path return diff --git a/contrib/python/cffi/lsan.supp b/contrib/python/cffi/lsan.supp index 8533ad0d29..a96d7728fd 100644 --- a/contrib/python/cffi/lsan.supp +++ b/contrib/python/cffi/lsan.supp @@ -1,2 +1,2 @@ -leak:b_init_cffi_1_0_external_module -leak:lib_build_and_cache_attr +leak:b_init_cffi_1_0_external_module +leak:lib_build_and_cache_attr diff --git a/contrib/python/cffi/ya.make b/contrib/python/cffi/ya.make index 7bff9477f9..b3043b5981 100644 --- a/contrib/python/cffi/ya.make +++ b/contrib/python/cffi/ya.make @@ -18,8 +18,8 @@ ADDINCL( NO_COMPILER_WARNINGS() NO_LINT() -SUPPRESSIONS(lsan.supp) - +SUPPRESSIONS(lsan.supp) + SRCS( c/_cffi_backend.c ) diff --git a/contrib/python/ipdb/ya.make b/contrib/python/ipdb/ya.make index c1c769c05c..fe303e0bdf 100644 --- a/contrib/python/ipdb/ya.make +++ b/contrib/python/ipdb/ya.make @@ -20,15 +20,15 @@ PY_SRCS( ipdb/stdout.py ) -NO_CHECK_IMPORTS( - # Modules presented below leads to initialization of pdb, - # which try to create ~/.ipython/profile_default/history.sqlite-journal, - # due to which import tests may crash - ipdb.__init__ - ipdb.__main__ - ipdb.stdout -) - +NO_CHECK_IMPORTS( + # Modules presented below leads to initialization of pdb, + # which try to create ~/.ipython/profile_default/history.sqlite-journal, + # due to which import tests may crash + ipdb.__init__ + ipdb.__main__ + ipdb.stdout +) + RESOURCE_FILES( PREFIX contrib/python/ipdb/ .dist-info/METADATA diff --git a/contrib/python/py/py/_vendored_packages/iniconfig/__init__.py b/contrib/python/py/py/_vendored_packages/iniconfig/__init__.py index ebef1fd720..fc89ba6e50 100644 --- a/contrib/python/py/py/_vendored_packages/iniconfig/__init__.py +++ b/contrib/python/py/py/_vendored_packages/iniconfig/__init__.py @@ -2,7 +2,7 @@ (C) Ronny Pfannschmidt, Holger Krekel -- MIT licensed """ import io - + __all__ = ['IniConfig', 'ParseError'] COMMENTCHARS = "#;" @@ -51,14 +51,14 @@ class IniConfig(object): def __init__(self, path, data=None): self.path = str(path) # convenience if data is None: - if self.path.startswith('pkg:'): - import pkgutil - - _, package, resource = self.path.split(':') - content = pkgutil.get_data(package, resource) + if self.path.startswith('pkg:'): + import pkgutil + + _, package, resource = self.path.split(':') + content = pkgutil.get_data(package, resource) f = io.StringIO(content.decode('utf-8')) - else: - f = open(self.path) + else: + f = open(self.path) try: tokens = self._parse(iter(f)) finally: diff --git a/contrib/python/pytest/py2/_pytest/python.py b/contrib/python/pytest/py2/_pytest/python.py index f7c368b0c4..7af7571bff 100644 --- a/contrib/python/pytest/py2/_pytest/python.py +++ b/contrib/python/pytest/py2/_pytest/python.py @@ -1204,33 +1204,33 @@ def _idval(val, argname, idx, idfn, item, config): return str(argname) + str(idx) -def limit_idval(limit): - import functools - - names = {} - limit -= 6 - assert limit > 0 - - def decorator(func): - @functools.wraps(func) - def wrapper(*args, **kw): - idval = func(*args, **kw) - if len(idval) > limit: - prefix = idval[:limit] - # There might be same prefix for the different test cases - take item into account +def limit_idval(limit): + import functools + + names = {} + limit -= 6 + assert limit > 0 + + def decorator(func): + @functools.wraps(func) + def wrapper(*args, **kw): + idval = func(*args, **kw) + if len(idval) > limit: + prefix = idval[:limit] + # There might be same prefix for the different test cases - take item into account name = "{}-{}".format(kw.get('item', ''), safe_str(prefix)) - idx = names.setdefault(name, -1) + 1 - names[name] = idx + idx = names.setdefault(name, -1) + 1 + names[name] = idx idval = "{}-{}".format(safe_str(prefix), idx) - return idval - - return wrapper - - return decorator - - -# XXX limit testnames in the name of sanity and readability -@limit_idval(limit=500) + return idval + + return wrapper + + return decorator + + +# XXX limit testnames in the name of sanity and readability +@limit_idval(limit=500) def _idvalset(idx, parameterset, argnames, idfn, ids, item, config): if parameterset.id is not None: return parameterset.id diff --git a/contrib/python/pytest/py3/_pytest/python.py b/contrib/python/pytest/py3/_pytest/python.py index f1a47d7d33..01011cbc15 100644 --- a/contrib/python/pytest/py3/_pytest/python.py +++ b/contrib/python/pytest/py3/_pytest/python.py @@ -1339,33 +1339,33 @@ def _idval( return str(argname) + str(idx) -def limit_idval(limit): - import functools - - names = {} - limit -= 6 - assert limit > 0 - - def decorator(func): - @functools.wraps(func) - def wrapper(*args, **kw): - idval = func(*args, **kw) - if len(idval) > limit: - prefix = idval[:limit] - # There might be same prefix for the different test cases - take item into account +def limit_idval(limit): + import functools + + names = {} + limit -= 6 + assert limit > 0 + + def decorator(func): + @functools.wraps(func) + def wrapper(*args, **kw): + idval = func(*args, **kw) + if len(idval) > limit: + prefix = idval[:limit] + # There might be same prefix for the different test cases - take item into account name = "{}-{}".format(kw.get('item', ''), prefix) - idx = names.setdefault(name, -1) + 1 - names[name] = idx + idx = names.setdefault(name, -1) + 1 + names[name] = idx idval = "{}-{}".format(prefix, idx) - return idval - - return wrapper - - return decorator - - -# XXX limit testnames in the name of sanity and readability -@limit_idval(limit=500) + return idval + + return wrapper + + return decorator + + +# XXX limit testnames in the name of sanity and readability +@limit_idval(limit=500) def _idvalset( idx: int, parameterset: ParameterSet, diff --git a/contrib/python/six/ya.make b/contrib/python/six/ya.make index e0c7849214..e49fe7a30d 100644 --- a/contrib/python/six/ya.make +++ b/contrib/python/six/ya.make @@ -1,5 +1,5 @@ OWNER(g:python-contrib) - + PY23_LIBRARY() LICENSE(MIT) diff --git a/contrib/python/toml/LICENSE b/contrib/python/toml/LICENSE index 5010e3075e..ef2d096e59 100644 --- a/contrib/python/toml/LICENSE +++ b/contrib/python/toml/LICENSE @@ -1,27 +1,27 @@ -The MIT License - +The MIT License + Copyright 2013-2019 William Pearson Copyright 2015-2016 Julien Enselme -Copyright 2016 Google Inc. +Copyright 2016 Google Inc. Copyright 2017 Samuel Vasko Copyright 2017 Nate Prewitt Copyright 2017 Jack Evans Copyright 2019 Filippo Broggini - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE.
\ No newline at end of file + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.
\ No newline at end of file diff --git a/contrib/python/toml/ya.make b/contrib/python/toml/ya.make index 104e501e8e..bda683c55a 100644 --- a/contrib/python/toml/ya.make +++ b/contrib/python/toml/ya.make @@ -1,20 +1,20 @@ OWNER(g:python-contrib) - + PY23_LIBRARY() - + LICENSE(MIT) VERSION(0.10.2) -PY_SRCS( - TOP_LEVEL +PY_SRCS( + TOP_LEVEL toml/__init__.py toml/decoder.py toml/encoder.py toml/ordered.py toml/tz.py -) - +) + RESOURCE_FILES( PREFIX contrib/python/toml/ .dist-info/METADATA @@ -26,6 +26,6 @@ RESOURCE_FILES( toml/tz.pyi ) -NO_LINT() - -END() +NO_LINT() + +END() diff --git a/contrib/python/traitlets/py2/tests/ya.make b/contrib/python/traitlets/py2/tests/ya.make index d2d3e3b9bf..105ca6c7ef 100644 --- a/contrib/python/traitlets/py2/tests/ya.make +++ b/contrib/python/traitlets/py2/tests/ya.make @@ -3,7 +3,7 @@ PY2TEST() OWNER(g:python-contrib borman nslus) PEERDIR( - contrib/python/traitlets + contrib/python/traitlets ) ENV( diff --git a/contrib/python/ya.make b/contrib/python/ya.make index d01ced9f3a..8b0de6b929 100644 --- a/contrib/python/ya.make +++ b/contrib/python/ya.make @@ -4,7 +4,7 @@ RECURSE( absl-py adblockparser aenum - ago + ago aio-pika aioboto3 aiobotocore @@ -45,8 +45,8 @@ RECURSE( alembic allpairspy amqp - aniso8601 - annoy + aniso8601 + annoy antlr4 ansiwrap anyconfig @@ -55,17 +55,17 @@ RECURSE( apipkg apispec apispec-flask-restful - appdirs + appdirs APScheduler apsw aresponses - argcomplete + argcomplete argon2-cffi argon2-cffi-bindings argparse-addons arq arrow - asciitree + asciitree asgiref asn1crypto astroid @@ -75,7 +75,7 @@ RECURSE( async-lru async-timeout asyncio-pool - asyncmc + asyncmc asyncpg asyncssh asynctest @@ -101,18 +101,18 @@ RECURSE( banal bandit bcrypt - beautifulsoup4 + beautifulsoup4 behave betamax betamax-serializers billiard binaryornot bincopy - biplist + biplist bitarray black - bleach - blinker + bleach + blinker blis bokeh boltons @@ -125,7 +125,7 @@ RECURSE( bravado bravado-core bsddb3 - bson + bson bz2file cached-property cachelib @@ -165,7 +165,7 @@ RECURSE( colorhash colorlog commoncode - commonmark + commonmark ConfigArgParse configobj configparser @@ -176,7 +176,7 @@ RECURSE( convertdate cookies cov-core - coverage + coverage coverage/bin cpu-cores crcmod @@ -322,13 +322,13 @@ RECURSE( dominate dotmap dparse - dpath + dpath dpkt drf-extensions drf_ujson drf-yasg - easywebdav - ecdsa + easywebdav + ecdsa edera editdistance elasticsearch @@ -353,7 +353,7 @@ RECURSE( facebook-business factory-boy Faker - fakeredis + fakeredis falcon falcon-cors falcon-multipart @@ -365,7 +365,7 @@ RECURSE( fasteners fastjsonschema fastsnmp - faulthandler + faulthandler fbprophet feedparser ffmpeg-python @@ -424,7 +424,7 @@ RECURSE( ftfy funcparserlib funcsigs - functools32 + functools32 furl future futures @@ -461,10 +461,10 @@ RECURSE( graphene-sqlalchemy graphql-core graphql-relay - graphviz + graphviz greenify greenlet - grequests + grequests grpcio-opentracing gspread gunicorn @@ -481,11 +481,11 @@ RECURSE( horovod hpack hstspreload - html2text + html2text html5lib httmock http-parser - httpagentparser + httpagentparser httpcore httplib2 httpretty @@ -542,10 +542,10 @@ RECURSE( janus jaraco.functools javaproperties - jdcal + jdcal jedi Jinja2 - jinja2-time + jinja2-time jmespath joblib jmespath @@ -598,7 +598,7 @@ RECURSE( lunardate lunr lxml - lz4 + lz4 M2Crypto m3u8 Mako @@ -664,7 +664,7 @@ RECURSE( nested-diff netaddr netifaces - networkx + networkx nltk normality nose @@ -673,7 +673,7 @@ RECURSE( numpy oauth2client oauthlib - objgraph + objgraph observable odfpy Office365-REST-Python-Client @@ -751,7 +751,7 @@ RECURSE( plumbum ply plyvel - polib + polib portalocker portpicker ppdeep @@ -760,7 +760,7 @@ RECURSE( prance premailer preshed - pretend + pretend prettytable priority progressbar2 @@ -792,7 +792,7 @@ RECURSE( pyaml pyasn1 pyasn1-modules - pybreaker + pybreaker pycares pycbrf pycodestyle @@ -806,7 +806,7 @@ RECURSE( pydantic pydash PyDispatcher - pyDOE + pyDOE pydocstyle pydot pydub @@ -858,7 +858,7 @@ RECURSE( pysyncobj pyTelegramBotAPI pytest - pytest-allure-adaptor + pytest-allure-adaptor pytest-asyncio pytest-bdd pytest-datadir @@ -943,7 +943,7 @@ RECURSE( requests requests-file requests-mock - requests-oauthlib + requests-oauthlib requests-toolbelt requests-unixsocket responses @@ -955,7 +955,7 @@ RECURSE( RPi.GPIO RPI-ST7789 rsa - rstr + rstr ruamel.std.pathlib ruamel.yaml Rx @@ -1007,7 +1007,7 @@ RECURSE( smmap snappy sniffio - snowballstemmer + snowballstemmer sobol-seq sockjs soft-webauthn @@ -1029,7 +1029,7 @@ RECURSE( sqltap srptools srsly - sshpubkeys + sshpubkeys sshtunnel stack-data starlette @@ -1070,7 +1070,7 @@ RECURSE( tinycss2 tinyrpc tldextract - toml + toml tomli toolz toposort @@ -1084,7 +1084,7 @@ RECURSE( traitlets transfer_manager_client transitions - transliterate + transliterate trollius trollsift Twiggy @@ -1142,14 +1142,14 @@ RECURSE( webauthn webcolors webencodings - WebOb + WebOb websocket-client websockets webstruct WebTest webvtt-py weighted-levenshtein - Werkzeug + Werkzeug wheel whitenoise whodap |