cgi: fix cached output for Python3

* wrap/python/ajax/spotcgi.in: Fix.
This commit is contained in:
Alexandre Duret-Lutz 2015-06-16 18:28:40 +02:00
parent 533fc21a25
commit de00bd3e25

View file

@ -45,6 +45,7 @@ if qs:
cache = open(cachename, "rb", 0)
if hasattr(sys.stdout, 'buffer'):
# Python 3+
sys.stdout.flush()
sys.stdout.buffer.write(cache.read())
else:
# Python 2.x