diff --git a/CHANGES.txt b/CHANGES.txt index 8b31b2a4d42cae3ca0fc633586e01120584a317a_Q0hBTkdFUy50eHQ=..42e9f52a7e6345a19574ac2778273eeedeacd8eb_Q0hBTkdFUy50eHQ= 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,8 @@ +Version 3.0.8 released 2013-02-19 + +* Fix a Python 2.x compiler warning for narrow unicode builds + https://github.com/simplejson/simplejson/issues/56 + Version 3.0.7 released 2013-01-11 * NOTE: this release only changes the license. diff --git a/conf.py b/conf.py index 8b31b2a4d42cae3ca0fc633586e01120584a317a_Y29uZi5weQ==..42e9f52a7e6345a19574ac2778273eeedeacd8eb_Y29uZi5weQ== 100644 --- a/conf.py +++ b/conf.py @@ -44,7 +44,7 @@ # The short X.Y version. version = '3.0' # The full version, including alpha/beta/rc tags. -release = '3.0.7' +release = '3.0.8' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: diff --git a/setup.py b/setup.py index 8b31b2a4d42cae3ca0fc633586e01120584a317a_c2V0dXAucHk=..42e9f52a7e6345a19574ac2778273eeedeacd8eb_c2V0dXAucHk= 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ DistutilsPlatformError IS_PYPY = hasattr(sys, 'pypy_translation_info') -VERSION = '3.0.7' +VERSION = '3.0.8' DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python" with open('README.rst', 'r') as f: diff --git a/simplejson/__init__.py b/simplejson/__init__.py index 8b31b2a4d42cae3ca0fc633586e01120584a317a_c2ltcGxlanNvbi9fX2luaXRfXy5weQ==..42e9f52a7e6345a19574ac2778273eeedeacd8eb_c2ltcGxlanNvbi9fX2luaXRfXy5weQ== 100644 --- a/simplejson/__init__.py +++ b/simplejson/__init__.py @@ -99,7 +99,7 @@ Expecting property name: line 1 column 2 (char 2) """ from __future__ import absolute_import -__version__ = '3.0.7' +__version__ = '3.0.8' __all__ = [ 'dump', 'dumps', 'load', 'loads', 'JSONDecoder', 'JSONDecodeError', 'JSONEncoder', diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c index 8b31b2a4d42cae3ca0fc633586e01120584a317a_c2ltcGxlanNvbi9fc3BlZWR1cHMuYw==..42e9f52a7e6345a19574ac2778273eeedeacd8eb_c2ltcGxlanNvbi9fc3BlZWR1cHMuYw== 100644 --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -486,6 +486,7 @@ c == '\t') { return 2; } - else if (c < 0x10000U) { - return MIN_EXPANSION; +#if defined(Py_UNICODE_WIDE) || PY_MAJOR_VERSION >= 3 + else if (c >= 0x10000U) { + return 2 * MIN_EXPANSION; } @@ -491,2 +492,3 @@ } +#endif else { @@ -492,5 +494,5 @@ else { - return 2 * MIN_EXPANSION; + return MIN_EXPANSION; } }