diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-24 09:55:54 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-24 09:55:54 +0200 |
commit | 888ddb08ff0ed2e37138a2bae4927c7d6917ba74 (patch) | |
tree | 34e35b8a1073bf8fc0e617d800ba9a5a0c74cb70 | |
parent | dd1762e1b9bbdca4a35df0b016167796505d56a4 (diff) | |
download | simplejson-888ddb08ff0ed2e37138a2bae4927c7d6917ba74.tar.gz |
Fix a compile error on 2.x. Closes #193.speedups-compile-error-2.7
-rw-r--r-- | simplejson/_speedups.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c index 017e7ae..b691b4b 100644 --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -2821,7 +2821,7 @@ encoder_encode_string(PyEncoderObject *s, PyObject *obj) encoded = PyObject_CallFunctionObjArgs(s->encoder, obj, NULL); if (encoded != NULL && #if PY_MAJOR_VERSION < 3 - !JSON_ASCII_Check(unicode) && + !JSON_ASCII_Check(encoded) && #endif /* PY_MAJOR_VERSION < 3 */ !PyUnicode_Check(encoded)) { |