Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 1ea1f46f authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Apply 2to3 converter to views.

parent c7593632
{{
import cStringIO
response.body = cStringIO.StringIO()
import io
response.body = io.StringIO()
response.headers['Content-Type']='application/pdf'
response.write(data, escape=False)
......
{{
import cStringIO
response.body = cStringIO.StringIO()
import io
response.body = io.StringIO()
response.headers['Content-Type']='application/png'
response.write(data, escape=False)
......
{{include 'lists/index.html'}}
{{
import base64
import cStringIO
import io
import os
......@@ -63,7 +63,7 @@
#
# build the response
#
response.body = cStringIO.StringIO()
response.body = io.StringIO()
response.headers['Content-Type']='application/vnd.oasis.opendocument.text'
response.headers['Content-Disposition'] = 'attachment;filename="list.odt"'
......
......@@ -5,7 +5,7 @@
#
#--------------------------------------------------------------------------
import base64
import cStringIO
import io
import os
from subprocess import call, check_output
......@@ -58,7 +58,7 @@
# Prepare the response
#
response.headers['Content-Type']='application/pdf'
response.body = cStringIO.StringIO()
response.body = io.StringIO()
s64 = base64.b64encode(spdf)
response.write(s64, escape=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment