]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - cgi-bin/index.py
more python3 readiness
[projects/pld-ftp-admin.git] / cgi-bin / index.py
index 208a66a91f81d033f017c7a89a5b6e386af6fae0..70845aeaceb25fcfca08d6cb0ad3b0ce2bd9e082 100755 (executable)
@@ -1,6 +1,8 @@
 #!/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
@@ -9,11 +11,11 @@ contenttypesent=False
 
 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)
 
This page took 0.112654 seconds and 4 git commands to generate.