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:
parent
914f367657
commit
aef04a38e1
10 changed files with 58 additions and 71 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import rlgall
|
||||
import rlgalldb as rlgall
|
||||
|
||||
playerdir = "/var/www/lighttpd/scoring/players/"
|
||||
linkstr = '<li><a href="./{0}.html">{0}</a></li>\n'
|
||||
|
|
@ -15,7 +15,7 @@ for filename in filelist:
|
|||
namelist.append(filename.rsplit(".html", 1)[0])
|
||||
namelist.sort()
|
||||
|
||||
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")
|
||||
sys.stdout.write(rlgall.phead.format("Players"))
|
||||
sys.stdout.write(rlgall.ptop)
|
||||
sys.stdout.write(rlgall.navscore.format("Players"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue