mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Use f-string as per the reviewer request
This commit is contained in:
parent
964504d3a7
commit
0e2846d66a
1 changed files with 4 additions and 3 deletions
|
@ -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."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue