diff options
author | arcadia-devtools <[email protected]> | 2022-02-12 23:36:45 +0300 |
---|---|---|
committer | arcadia-devtools <[email protected]> | 2022-02-12 23:36:45 +0300 |
commit | 66207ac2e4011670c6b19eb092aa8b25573c83ab (patch) | |
tree | e032a26773d20e50e2c895de4f6a12d53675141a /contrib/python/iniconfig/patches | |
parent | 008cb193473d8c3a08cd8865762bb0f1a6769a22 (diff) |
intermediate changes
ref:1e8309535082a2a744258b97e83a62109d53de59
Diffstat (limited to 'contrib/python/iniconfig/patches')
-rw-r--r-- | contrib/python/iniconfig/patches/01-arcadia.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/python/iniconfig/patches/01-arcadia.patch b/contrib/python/iniconfig/patches/01-arcadia.patch index 16d9cd88a40..8fc2f4fdd6c 100644 --- a/contrib/python/iniconfig/patches/01-arcadia.patch +++ b/contrib/python/iniconfig/patches/01-arcadia.patch @@ -16,7 +16,8 @@ + if os.path.basename(self.path).startswith('pkg:'): + import io, pkgutil + -+ _, package, resource = self.path.split(':') ++ basename = os.path.basename(self.path) ++ _, package, resource = basename.split(':') + content = pkgutil.get_data(package, resource) + f = io.StringIO(content.decode('utf-8')) + else: |