1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-12-05 02:11:32 +00:00

Use new f-strings where possible

This commit is contained in:
Kristóf Tóth 2018-04-19 09:19:32 +02:00
parent f79235fe22
commit 1040882254
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ LOG = logging.getLogger(__name__)
def cenator(history):
LOG.debug('User executed command: "%s"', history[-1])
MessageSender().send('JOHN CENA', 'You\'ve executed "{}"'.format(history[-1]))
MessageSender().send('JOHN CENA', f'You\'ve executed "{history[-1]}"')
class TestCommands(TerminalCommands):

View File

@ -23,4 +23,4 @@ class TestFSM(LinearFSM):
self.state_notify(5)
def state_notify(self, state):
self.message_sender.send('TestFSM', 'Entered state {}!'.format(state))
self.message_sender.send('TestFSM', f'Entered state {state}!')