mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
python: Manually convert more percent-formatting to f-strings.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3461db7ef5
commit
5dc9b55c43
@@ -98,12 +98,11 @@ if change_symlink and "PWD" in os.environ:
|
||||
if os.path.commonprefix([os.environ["PWD"], symlink]) == symlink:
|
||||
print(
|
||||
"""
|
||||
%sYour shell entered its current directory through a symlink:
|
||||
%s
|
||||
{}Your shell entered its current directory through a symlink:
|
||||
{}
|
||||
which has now changed. Your shell will not see this change until you run:
|
||||
cd %s
|
||||
to traverse the symlink again.%s
|
||||
"""
|
||||
% (WARNING, symlink, shlex.quote(os.environ["PWD"]), ENDC),
|
||||
cd {}
|
||||
to traverse the symlink again.{}
|
||||
""".format(WARNING, symlink, shlex.quote(os.environ["PWD"]), ENDC),
|
||||
file=sys.stderr,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user