From 57be17d7f53281d16bcc25df81b56cddf0a298ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Schwert?= Date: Tue, 28 Jul 2020 14:35:49 +0200 Subject: [PATCH] Convert old print statement into function For Python 3 compatibility. --- websockify/token_plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websockify/token_plugins.py b/websockify/token_plugins.py index 6193d9b..7a988a3 100644 --- a/websockify/token_plugins.py +++ b/websockify/token_plugins.py @@ -34,7 +34,7 @@ class ReadOnlyTokenFile(BasePlugin): tok, target = line.split(': ') self._targets[tok] = target.strip().rsplit(':', 1) except ValueError: - print >>sys.stderr, "Syntax error in %s on line %d" % (self.source, index) + print("Syntax error in %s on line %d" % (self.source, index), file=sys.stderr) index += 1 def lookup(self, token):