#!/usr/bin/env python
# vi: encoding=utf-8 ts=8 sts=4 sw=4 et
+from __future__ import print_function
+
# Printing errors (no SyntaxErrors though, but that's not a problem)
import sys, os
sys.stderr=sys.stdout
def myexceptionhandler(type, value, traceback):
if contenttypesent:
- print '<pre>'
+ print('<pre>')
sys.__excepthook__(type, value, traceback)
- print '</pre>'
+ print('</pre>')
else:
- print "Content-Type: text/plain\n"
+ print("Content-Type: text/plain\n")
sys.__excepthook__(type, value, traceback)
sys.exit(1)