summaryrefslogtreecommitdiffstats
path: root/Lib/json
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-07-28 16:39:41 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-07-28 16:39:41 (GMT)
commit02ea12b29196ae002e26061eb0afb96db0cf889b (patch)
tree6ada8bb7e3777cb573814322d1eab627fd1899a2 /Lib/json
parent3f8ab965f722b3bda679c9271fb8907e2bbcdc64 (diff)
downloadcpython-02ea12b29196ae002e26061eb0afb96db0cf889b.zip
cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.tar.gz
cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.tar.bz2
Syntax cleanup.
Diffstat (limited to 'Lib/json')
-rw-r--r--Lib/json/encoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py
index 2beb10e..d068e72 100644
--- a/Lib/json/encoder.py
+++ b/Lib/json/encoder.py
@@ -397,7 +397,7 @@ def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,
yield 'true'
elif o is False:
yield 'false'
- elif isinstance(o, (int, int)):
+ elif isinstance(o, int):
yield str(o)
elif isinstance(o, float):
yield _floatstr(o)