aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/symbols/module/__init__.py
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/python/symbols/module/__init__.py
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python/symbols/module/__init__.py')
-rw-r--r--library/python/symbols/module/__init__.py96
1 files changed, 48 insertions, 48 deletions
diff --git a/library/python/symbols/module/__init__.py b/library/python/symbols/module/__init__.py
index 0061b9e598..2472775377 100644
--- a/library/python/symbols/module/__init__.py
+++ b/library/python/symbols/module/__init__.py
@@ -1,48 +1,48 @@
-import subprocess
-
-from collections import defaultdict
-
-from .syms import syms
-
-
-def gen_builtin():
- res = defaultdict(dict)
-
- for k, v in syms.items():
- mod, sym = k.split('|')
-
- res[mod][sym] = v
-
- return res
-
-
-builtin_symbols = gen_builtin()
-caps = builtin_symbols['_capability']
-
-
-def find_library(name, find_next):
- subst = {
- 'rt': 'c',
- 'pthread': 'c',
- 'm': 'c',
- }
-
- builtin = builtin_symbols.get(subst.get(name, name))
-
- if builtin:
- return {
- 'name': name,
- 'symbols': builtin,
- }
-
- if 'musl' in caps:
- return None
-
- try:
- subprocess.Popen.__patched__
-
- return None
- except Exception:
- pass
-
- return find_next(name)
+import subprocess
+
+from collections import defaultdict
+
+from .syms import syms
+
+
+def gen_builtin():
+ res = defaultdict(dict)
+
+ for k, v in syms.items():
+ mod, sym = k.split('|')
+
+ res[mod][sym] = v
+
+ return res
+
+
+builtin_symbols = gen_builtin()
+caps = builtin_symbols['_capability']
+
+
+def find_library(name, find_next):
+ subst = {
+ 'rt': 'c',
+ 'pthread': 'c',
+ 'm': 'c',
+ }
+
+ builtin = builtin_symbols.get(subst.get(name, name))
+
+ if builtin:
+ return {
+ 'name': name,
+ 'symbols': builtin,
+ }
+
+ if 'musl' in caps:
+ return None
+
+ try:
+ subprocess.Popen.__patched__
+
+ return None
+ except Exception:
+ pass
+
+ return find_next(name)