summaryrefslogtreecommitdiff
path: root/http2
diff options
context:
space:
mode:
authorDiego Roversi <diegor@tiscali.it>2019-09-20 12:33:26 +0200
committerDiego Roversi <diegor@tiscali.it>2019-09-20 12:33:26 +0200
commit39eb83a42dbcb6b003fadfdf0b1f0a275c11c3ad (patch)
tree3de60a9d4b6c7c58382f3c4482974ac5c9fd2765 /http2
parentca9ffe55d8dd31a4b851a02d51ef14561c5ffcac (diff)
convert string to bytearray
Diffstat (limited to 'http2')
-rw-r--r--http2/data/new.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/http2/data/new.html b/http2/data/new.html
index 21ce445..e6d080e 100644
--- a/http2/data/new.html
+++ b/http2/data/new.html
@@ -94,10 +94,13 @@ def nameval(name, value, default=0, options=options):
<td width=48><img src="bob.png"></td>
<td><select name="file">%(
for displayname, filename in Game.FnListBoards():
- print( '<option', end='' )
+ sys.stdout.write( '<option ' )
if filename == str(options.file):
- print( 'selected', end='' )
- print( 'value="%s">' % htmlquote(filename), htmlquote(displayname) )
+ sys.stdout.write( 'selected ')
+ sys.stdout.write( ( ( 'value="%s">' % htmlquote(filename).decode()
+ ) + htmlquote(displayname).decode()
+ + '\n'
+ ) )
)s</select>
</td>
</tr>