Remove unused format parameters (#385)

Fixes pyflakes unused argument warning
This commit is contained in:
sneakypete81 2020-04-12 19:47:28 +01:00 committed by GitHub
parent 52ee3ce105
commit d4a2c70d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ def invite(cfg, reactor=reactor):
print()
if cfg.ssh_user is None:
ssh_path = expanduser('~/.ssh/'.format(cfg.ssh_user))
ssh_path = expanduser('~/.ssh/')
else:
ssh_path = expanduser('~{}/.ssh/'.format(cfg.ssh_user))
auth_key_path = join(ssh_path, 'authorized_keys')

View File

@ -988,7 +988,7 @@ class ZeroMode(ServerBase, unittest.TestCase):
"wormhole receive -0{NL}"
"{NL}"
"text message sent{NL}").format(
bytes=len(message), code=send_cfg.code, NL=NL)
bytes=len(message), NL=NL)
self.failUnlessEqual(send_stderr, expected)
# check receiver