aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/py/patches/01-arcadia.patch
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/py/patches/01-arcadia.patch
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
Diffstat (limited to 'contrib/python/py/patches/01-arcadia.patch')
-rw-r--r--contrib/python/py/patches/01-arcadia.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/contrib/python/py/patches/01-arcadia.patch b/contrib/python/py/patches/01-arcadia.patch
deleted file mode 100644
index 5739c8689f6..00000000000
--- a/contrib/python/py/patches/01-arcadia.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- contrib/python/py/py/_vendored_packages/iniconfig/__init__.py (working tree)
-+++ contrib/python/py/py/_vendored_packages/iniconfig/__init__.py (index)
-@@ -1,6 +1,8 @@
- """ brain-dead simple parser for ini-style files.
- (C) Ronny Pfannschmidt, Holger Krekel -- MIT licensed
- """
-+import io
-+
- __all__ = ['IniConfig', 'ParseError']
-
- COMMENTCHARS = "#;"
-@@ -49,7 +51,14 @@
- def __init__(self, path, data=None):
- self.path = str(path) # convenience
- if data is None:
-- f = open(self.path)
-+ 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)
- try:
- tokens = self._parse(iter(f))
- finally: