Skip to content
Snippets Groups Projects
Commit b36c242c989a authored by Bob Ippolito's avatar Bob Ippolito
Browse files
parent e851142d12c1
No related branches found
No related tags found
No related merge requests found
Version 2.1.1 released 2010-03-11
* Corrected simplejson.__version__ and other minor doc changes.
* Do not fail speedups tests if speedups could not be built.
http://code.google.com/p/simplejson/issues/detail?id=73
Version 2.1.0 released 2010-03-10 Version 2.1.0 released 2010-03-10
* Decimal serialization officially supported for encoding with * Decimal serialization officially supported for encoding with
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
# The short X.Y version. # The short X.Y version.
version = '2.1' version = '2.1'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '2.1.0' release = '2.1.1'
# There are two options for replacing |today|: either, you set today to some # There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used: # non-false value, then it is used:
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
from distutils.errors import CCompilerError, DistutilsExecError, \ from distutils.errors import CCompilerError, DistutilsExecError, \
DistutilsPlatformError DistutilsPlatformError
VERSION = '2.1.0' VERSION = '2.1.1'
DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python" DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"
LONG_DESCRIPTION = """ LONG_DESCRIPTION = """
simplejson is a simple, fast, complete, correct and extensible simplejson is a simple, fast, complete, correct and extensible
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python" DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"
LONG_DESCRIPTION = """ LONG_DESCRIPTION = """
simplejson is a simple, fast, complete, correct and extensible simplejson is a simple, fast, complete, correct and extensible
JSON <http://json.org> encoder and decoder for Python 2.4+. It is JSON <http://json.org> encoder and decoder for Python 2.5+. It is
pure Python code with no dependencies, but includes an optional C pure Python code with no dependencies, but includes an optional C
extension for a serious speed boost. extension for a serious speed boost.
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
pure Python code with no dependencies, but includes an optional C pure Python code with no dependencies, but includes an optional C
extension for a serious speed boost. extension for a serious speed boost.
simplejson was formerly known as simple_json, but changed its name to simplejson is the externally maintained development version of the
comply with PEP 8 module naming guidelines. json library included with Python 2.6 and Python 3.0, but maintains
backwards compatibility with Python 2.5.
The encoder may be subclassed to provide serialization in any kind of The encoder may be subclassed to provide serialization in any kind of
situation, without any special support by the objects to be serialized situation, without any special support by the objects to be serialized
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
$ echo '{ 1.2:3.4}' | python -m simplejson.tool $ echo '{ 1.2:3.4}' | python -m simplejson.tool
Expecting property name: line 1 column 2 (char 2) Expecting property name: line 1 column 2 (char 2)
""" """
__version__ = '2.1.0rc3' __version__ = '2.1.1'
__all__ = [ __all__ = [
'dump', 'dumps', 'load', 'loads', 'dump', 'dumps', 'load', 'loads',
'JSONDecoder', 'JSONDecodeError', 'JSONEncoder', 'JSONDecoder', 'JSONDecodeError', 'JSONEncoder',
......
...@@ -3,5 +3,8 @@ ...@@ -3,5 +3,8 @@
from simplejson import decoder, encoder, scanner from simplejson import decoder, encoder, scanner
def has_speedups():
return encoder.c_make_encoder is not None
class TestDecode(TestCase): class TestDecode(TestCase):
def test_make_scanner(self): def test_make_scanner(self):
...@@ -6,5 +9,7 @@ ...@@ -6,5 +9,7 @@
class TestDecode(TestCase): class TestDecode(TestCase):
def test_make_scanner(self): def test_make_scanner(self):
if not has_speedups():
return
self.assertRaises(AttributeError, scanner.c_make_scanner, 1) self.assertRaises(AttributeError, scanner.c_make_scanner, 1)
def test_make_encoder(self): def test_make_encoder(self):
...@@ -8,6 +13,8 @@ ...@@ -8,6 +13,8 @@
self.assertRaises(AttributeError, scanner.c_make_scanner, 1) self.assertRaises(AttributeError, scanner.c_make_scanner, 1)
def test_make_encoder(self): def test_make_encoder(self):
if not has_speedups():
return
self.assertRaises(TypeError, encoder.c_make_encoder, self.assertRaises(TypeError, encoder.c_make_encoder,
None, None,
"\xCD\x7D\x3D\x4E\x12\x4C\xF9\x79\xD7\x52\xBA\x82\xF2\x27\x4A\x7D\xA0\xCA\x75", "\xCD\x7D\x3D\x4E\x12\x4C\xF9\x79\xD7\x52\xBA\x82\xF2\x27\x4A\x7D\xA0\xCA\x75",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment