aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/json/loads.pyx
diff options
context:
space:
mode:
authorprettyboy <prettyboy@yandex-team.com>2023-09-08 10:08:57 +0300
committerprettyboy <prettyboy@yandex-team.com>2023-09-08 10:39:21 +0300
commit329f805999a3b41e406959a17cf35ab193ef05a5 (patch)
tree9a3059df4d544b6c9d6f474344e52f65bd13b4c1 /library/python/json/loads.pyx
parent02ea6261088be81bbc455933cecf8b41726946c1 (diff)
downloadydb-329f805999a3b41e406959a17cf35ab193ef05a5.tar.gz
Revert commit rXXXXXX,[build/plugins/ytest] Allow prebuilt linters for opensource
Diffstat (limited to 'library/python/json/loads.pyx')
-rw-r--r--library/python/json/loads.pyx14
1 files changed, 0 insertions, 14 deletions
diff --git a/library/python/json/loads.pyx b/library/python/json/loads.pyx
deleted file mode 100644
index 82e5c6dce7b..00000000000
--- a/library/python/json/loads.pyx
+++ /dev/null
@@ -1,14 +0,0 @@
-from libcpp cimport bool
-
-cdef extern from "library/python/json/loads.h":
- object LoadJsonFromString(const char*, size_t, bool internKeys, bool internVals, bool mayUnicode) except +
-
-
-def loads(s, intern_keys = False, intern_vals = False, may_unicode = False):
- if isinstance(s, unicode):
- s = s.encode('utf-8')
-
- try:
- return LoadJsonFromString(s, len(s), intern_keys, intern_vals, may_unicode)
- except Exception as e:
- raise ValueError(str(e))