mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-12 22:47:18 +00:00
Use new f-strings where possible
This commit is contained in:
parent
f79235fe22
commit
1040882254
@ -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):
|
||||
|
@ -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}!')
|
||||
|
Loading…
Reference in New Issue
Block a user