#10019: Fix regression relative to 2.6: add newlines if indent=0

Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py
index d8692c4..906c462 100644
--- a/Lib/json/encoder.py
+++ b/Lib/json/encoder.py
@@ -251,7 +251,7 @@
 
 
         if (_one_shot and c_make_encoder is not None
-                and not self.indent and not self.sort_keys):
+                and self.indent is None and not self.sort_keys):
             _iterencode = c_make_encoder(
                 markers, self.default, _encoder, self.indent,
                 self.key_separator, self.item_separator, self.sort_keys,