diff options
| author | Tom Christie | 2015-01-19 14:41:10 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-01-19 14:41:10 +0000 | 
| commit | 4f3c3a06cfc0ea2dfbf46da2d98546664343ce93 (patch) | |
| tree | 00a568097b5e34750f932aeec62fee4b19b048b5 /rest_framework/compat.py | |
| parent | dc18040ba47325afb38ae62042a6103bfd794c4b (diff) | |
| download | django-rest-framework-4f3c3a06cfc0ea2dfbf46da2d98546664343ce93.tar.bz2 | |
Drop trailing whitespace on indented JSON output. Closes #2429.
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 7241da27..ea342994 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -227,6 +227,8 @@ except ImportError:  if six.PY3:      SHORT_SEPARATORS = (',', ':')      LONG_SEPARATORS = (', ', ': ') +    INDENT_SEPARATORS = (',', ': ')  else:      SHORT_SEPARATORS = (b',', b':')      LONG_SEPARATORS = (b', ', b': ') +    INDENT_SEPARATORS = (b',', b': ') | 
