Port to Python 3.

All scripts and modules have been ported to Python 3 and appear to
work.  Some changes to the lighttpd configuration were needed.
This commit is contained in:
John "Elwin" Edwards 2013-12-31 13:36:19 -05:00
parent 914f367657
commit aef04a38e1
10 changed files with 58 additions and 71 deletions

View file

@ -1,12 +1,16 @@
#!/usr/bin/python
#!/usr/bin/python3
# CGI script creating page of recent games
import sys
import time
import rlgalldb as rlgall
# It is assumed that sys.stdout uses UTF-8 encoding. If this is not the case,
# configure the Web server to set the LC_CTYPE environment variable to a UTF-8
# locale.
# The required header
sys.stdout.write("Content-type: text/html\r\n\r\n")
sys.stdout.write("Content-Type: text/html; charset=utf-8\r\n\r\n")
# The top of the page
sys.stdout.write(rlgall.phead.format("Recent Games"))
sys.stdout.write(rlgall.ptop);