diff options
| author | kuzmich321 <[email protected]> | 2026-02-10 11:14:05 +0300 |
|---|---|---|
| committer | kuzmich321 <[email protected]> | 2026-02-10 12:21:25 +0300 |
| commit | 80024707359671945cd036aa5249fefb5b6a09f2 (patch) | |
| tree | 4a92300d9ff531d7224b14621a2b63d728451234 /library/python | |
| parent | 40003bb3111d80ee7b48adfbaddcd9dcdf25dfe0 (diff) | |
rm legacy code in runtime_py3
commit_hash:2302b8301d7162e3aad97f392fa39762683aca72
Diffstat (limited to 'library/python')
| -rw-r--r-- | library/python/runtime_py3/__res.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/library/python/runtime_py3/__res.py b/library/python/runtime_py3/__res.py index 3b896e322d4..ca0cd1c3997 100644 --- a/library/python/runtime_py3/__res.py +++ b/library/python/runtime_py3/__res.py @@ -503,24 +503,6 @@ class ResourceImporter(SourceFileLoader): raise ImportError(fullname) - # Extension for contrib/python/coverage. - def file_source(self, filename): - """ - Return the key of the module source by its resource path. - """ - if not self.source_map: - for key, mod in iter_py_modules(with_keys=True): - path = self.get_filename(mod) - self.source_map[path] = key - - if filename in self.source_map: - return self.source_map[filename] - - if resfs_has(filename): - return b'resfs/file/' + _b(filename) - - return b'' - # Extension for pkgutil.iter_modules. def iter_modules(self, prefix=''): import re |
