🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

python-cjson

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-cjson - pypi Package Compare versions

Comparing version
1.0.4
to
1.0.5
+24
-25
cjson.c

@@ -1129,31 +1129,30 @@ /*

/* Create the module and add the functions */
m = Py_InitModule3("cjson", cjson_methods, module_doc);
/* Add some symbolic constants to the module */
if (JSON_Error == NULL) {
JSON_Error = PyErr_NewException("cjson.Error", NULL, NULL);
if (JSON_Error == NULL)
return;
//Py_INCREF(JSON_Error);
PyModule_AddObject(m, "Error", JSON_Error);
}
if (JSON_EncodeError == NULL) {
JSON_EncodeError = PyErr_NewException("cjson.EncodeError",
JSON_Error, NULL);
if (JSON_EncodeError == NULL)
return;
//Py_INCREF(JSON_EncodeError);
PyModule_AddObject(m, "EncodeError", JSON_EncodeError);
}
if (JSON_DecodeError == NULL) {
JSON_DecodeError = PyErr_NewException("cjson.DecodeError",
JSON_Error, NULL);
if (JSON_DecodeError == NULL)
return;
//Py_INCREF(JSON_DecodeError);
PyModule_AddObject(m, "DecodeError", JSON_DecodeError);
}
if (m == NULL)
return;
JSON_Error = PyErr_NewException("cjson.Error", NULL, NULL);
if (JSON_Error == NULL)
return;
Py_INCREF(JSON_Error);
PyModule_AddObject(m, "Error", JSON_Error);
JSON_EncodeError = PyErr_NewException("cjson.EncodeError", JSON_Error, NULL);
if (JSON_EncodeError == NULL)
return;
Py_INCREF(JSON_EncodeError);
PyModule_AddObject(m, "EncodeError", JSON_EncodeError);
JSON_DecodeError = PyErr_NewException("cjson.DecodeError", JSON_Error, NULL);
if (JSON_DecodeError == NULL)
return;
Py_INCREF(JSON_DecodeError);
PyModule_AddObject(m, "DecodeError", JSON_DecodeError);
// Module version (the MODULE_VERSION macro is defined by setup.py)
PyModule_AddStringConstant(m, "__version__", MODULE_VERSION);
}
Metadata-Version: 1.0
Name: python-cjson
Version: 1.0.4
Version: 1.0.5
Summary: Fast JSON encoder/decoder for Python

@@ -9,3 +9,3 @@ Home-page: http://ag-projects.com/

License: LGPL
Download-URL: http://cheeseshop.python.org/pypi/python-cjson/1.0.4
Download-URL: http://cheeseshop.python.org/pypi/python-cjson/1.0.5
Description: This module implements a very fast JSON encoder/decoder for Python.

@@ -12,0 +12,0 @@

@@ -5,4 +5,6 @@ #!/usr/bin/python

__version__ = "1.0.4"
__version__ = "1.0.5"
macros = [('MODULE_VERSION', '"%s"' % __version__)]
setup(name = "python-cjson",

@@ -26,2 +28,5 @@ version = __version__,

],
ext_modules = [Extension(name='cjson', sources=['cjson.c'])])
ext_modules = [
Extension(name='cjson', sources=['cjson.c'], define_macros=macros)
]
)

Sorry, the diff of this file is not supported yet