diff options
| author | Raymond Hettinger <python@rcn.com> | 2009-05-27 09:58:34 +0000 | 
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2009-05-27 09:58:34 +0000 | 
| commit | bcf6f92dc50c1f23ca327c5dae4d616cfe212625 (patch) | |
| tree | 6c178b09a815e9fdd9e7ba250940d380b973b83d /Lib/json/encoder.py | |
| parent | 81c0dcee658af0966bc91fe20ce2cd807a797aff (diff) | |
| download | cpython-git-bcf6f92dc50c1f23ca327c5dae4d616cfe212625.tar.gz | |
* Fix-up a TODO (support the sort_key option).
* Fix an error where True/False were being written-out
  as title-cased strings when used a dictionary keys.
* Speed-up iteration over dicts by looping over items()
  rather than keys() followed by value lookups.
* TODO:  sort only by keys, not keys and values.
Diffstat (limited to 'Lib/json/encoder.py')
| -rw-r--r-- | Lib/json/encoder.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py index 3c306ab8e2..2beb10e358 100644 --- a/Lib/json/encoder.py +++ b/Lib/json/encoder.py @@ -233,7 +233,7 @@ class JSONEncoder(object):          if (_one_shot and c_make_encoder is not None -                and not self.indent and not self.sort_keys): +                and not self.indent):              _iterencode = c_make_encoder(                  markers, self.default, _encoder, self.indent,                  self.key_separator, self.item_separator, self.sort_keys,  | 
