From 7a486cdbb2f50d79b15b0d3b445f0b08f93ae915 Mon Sep 17 00:00:00 2001 From: Chiller Dragon Date: Wed, 6 Dec 2023 19:09:05 +0100 Subject: [PATCH] Port daemon_control.py to python3 --- daemon_control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon_control.py b/daemon_control.py index d23c060..1fea3d3 100755 --- a/daemon_control.py +++ b/daemon_control.py @@ -17,7 +17,7 @@ def writefifo(order): print("Welcome to daemon control, enter 'help' to get a list of commands.") while True: - line = raw_input("> ") + line = input("> ") escaped = False string = False parts = [""] @@ -45,11 +45,11 @@ def writefifo(order): elif command == "suggested": data = getdata() for c in data["storage"]["suggested_rcon"]: - print c + print(c) elif command == "allowed": data = getdata() for c in data["storage"]["allowed_rcon"]: - print c + print(c) elif command == "allow": if len(args) < 1: print("Missing arguments")