Use f-string as per the reviewer request

This commit is contained in:
David Strobach 2020-08-28 15:55:10 +02:00
parent 964504d3a7
commit 0e2846d66a

View file

@ -167,10 +167,11 @@ class VoxHandler:
) )
if args.activate: if args.activate:
self.vox.activate(args.name) self.vox.activate(args.name)
msg = "Environment {0!r} created and activated.\n" print(f"Environment {args.name!r} created and activated.\n")
else: else:
msg = 'Environment {0!r} created. Activate it with "vox activate {0}".\n' print(
print(msg.format(args.name)) f'Environment {args.name!r} created. Activate it with "vox activate {args.name}".\n'
)
def cmd_activate(self, args, stdin=None): def cmd_activate(self, args, stdin=None):
"""Activate a virtual environment.""" """Activate a virtual environment."""