diff options
| author | say <[email protected]> | 2023-03-31 10:07:15 +0300 | 
|---|---|---|
| committer | say <[email protected]> | 2023-03-31 10:07:15 +0300 | 
| commit | e163b69a87c70baac07bd99142916735e0c283fa (patch) | |
| tree | 73e22c0f9e975ff6dc70f38534ec84588587d25c /library/python/json/loads.pyx | |
| parent | 6be8bf780352147bcac5afec43505883b69229a0 (diff) | |
Swith flake8 to custom lint schema
Diffstat (limited to 'library/python/json/loads.pyx')
| -rw-r--r-- | library/python/json/loads.pyx | 14 | 
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)) | 
