From 8f149cbb3e5baf446da0227407706f69e767c858 Mon Sep 17 00:00:00 2001 From: Paul-Andre Henegar Date: Fri, 12 Jan 2018 23:35:35 -0500 Subject: [PATCH] Remove Python 3.6 format strings from battlecode-manager --- battlecode-manager/battlecode_cli.py | 2 +- battlecode-manager/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/battlecode-manager/battlecode_cli.py b/battlecode-manager/battlecode_cli.py index e161a30..4eb7063 100644 --- a/battlecode-manager/battlecode_cli.py +++ b/battlecode-manager/battlecode_cli.py @@ -86,7 +86,7 @@ def run_game(game, dockers, args, sock_file): team = 'blue' else: team = 'red' - name = f'[{planet}:{team}]' + name = '[{}:{}]'.format(planet, team) logger = Logger(name, print=not args['terminal_viewer']) docker_inst.stream_logs(line_action=logger) player_['logger'] = logger diff --git a/battlecode-manager/server.py b/battlecode-manager/server.py index 578678a..1cfac1e 100644 --- a/battlecode-manager/server.py +++ b/battlecode-manager/server.py @@ -423,7 +423,7 @@ def message(self, state_diff): else: logged_in = "false" - message = f'{{"logged_in":{logged_in},"client_id":"{self.client_id}","error":{error},"message":{state_diff}}}' + message = '{{"logged_in":{},"client_id":"{}","error":{},"message":{}}}'.format(logged_in, self.client_id, error, state_diff) return message def player_handler(self):