From 46d1f8542e4fc35deea332fed11045f886c80a75 Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Fri, 5 Jun 2020 00:59:57 +0200 Subject: [PATCH] byte string if --- ir-remote-timer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir-remote-timer.py b/ir-remote-timer.py index 2eb9dc0..c679d3e 100644 --- a/ir-remote-timer.py +++ b/ir-remote-timer.py @@ -31,16 +31,16 @@ class Simple(resource.Resource): def render_GET(self, request): print(request) statustext = "" - if request.uri == "/on": + if request.uri == b"/on": statustext = "turn all projectors on ..." turnAllProjectorsOn() - if request.uri == "/off": + if request.uri == b"/off": statustext = "turn all projectors off ..." turnAllProjectorsOff() else: statustext = "" - html = '%s' % statustext + html = ' %s ' % statustext return html.encode('utf-8') site = server.Site(Simple())