Use pyupgrade with --py36-plus param.

This commit is contained in:
grossmj
2021-04-13 18:37:58 +09:30
parent a9eb035b7d
commit f928738bd5
235 changed files with 1501 additions and 1638 deletions

View File

@ -121,7 +121,7 @@ class EmbedShell:
found = True
break
if not found:
res = ('Command not found {}\n'.format(cmd[0]) + (await self.help()))
res = (f'Command not found {cmd[0]}\n' + (await self.help()))
return res
async def run(self):
@ -196,7 +196,7 @@ class UnstoppableEventLoop(EventLoop):
class ShellConnection(TelnetConnection):
def __init__(self, reader, writer, shell, window_size_changed_callback, loop):
super(ShellConnection, self).__init__(reader, writer, window_size_changed_callback)
super().__init__(reader, writer, window_size_changed_callback)
self._shell = shell
self._loop = loop
self._cli = None