commit | 02ea12b29196ae002e26061eb0afb96db0cf889b | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Wed Jul 28 16:39:41 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Wed Jul 28 16:39:41 2010 +0000 |
tree | 6ada8bb7e3777cb573814322d1eab627fd1899a2 | |
parent | 3f8ab965f722b3bda679c9271fb8907e2bbcdc64 [diff] [blame] |
Syntax cleanup.
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 @@ 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)