Skip to content

Commit

Permalink
Merge pull request #109 from Paul-Andre/master
Browse files Browse the repository at this point in the history
Remove Python 3.6 format strings from battlecode-manager
  • Loading branch information
kazimuth authored Jan 14, 2018
2 parents 8deae1b + 50ea976 commit cb4dbfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion battlecode-manager/battlecode_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def run_game(game, dockers, args, sock_file, scrimmage=False):
team = 'blue'
else:
team = 'red'
name = f'[{planet}:{team}]'

name = '[{}:{}]'.format(planet, team)
logger = Logger(name, print=(not args['terminal_viewer'] and not scrimmage))
docker_inst.stream_logs(line_action=logger)
player_['logger'] = logger
Expand Down
2 changes: 1 addition & 1 deletion battlecode-manager/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,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):
Expand Down

0 comments on commit cb4dbfd

Please sign in to comment.