Issue 1340 by Amaury Forgeot d'Arc (with help from Christian Heimes,
and my own interpretation). Don't pass the newline= flag to StringIO in SpooledTemporaryFile. This avoids doubling newlines when the file is rolled over.
G
Guido van Rossum committed
5d2125596844b507e213b7b671cfe8d18902d437
Parent: 1b16ca4