Mercurial > hg
comparison mercurial/sslutil.py @ 43080:86e4daa2d54c
cleanup: mark some ui.(status|note|warn|write) calls as not needing i18n
These used to be marked with no-op parens, but black removes those now
and this is more explicit.
# skip-blame: fallout from mass reformatting
Differential Revision: https://phab.mercurial-scm.org/D6996
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 10:51:16 -0400 |
parents | 687b865b95ad |
children | c59eb1560c44 |
comparison
equal
deleted
inserted
replaced
43079:5209fc94b982 | 43080:86e4daa2d54c |
---|---|
381 import sslkeylog | 381 import sslkeylog |
382 | 382 |
383 sslkeylog.set_keylog( | 383 sslkeylog.set_keylog( |
384 pycompat.fsdecode(encoding.environ[b'SSLKEYLOGFILE']) | 384 pycompat.fsdecode(encoding.environ[b'SSLKEYLOGFILE']) |
385 ) | 385 ) |
386 ui.warn( | 386 ui.warnnoi18n( |
387 b'sslkeylog enabled by SSLKEYLOGFILE environment variable\n' | 387 b'sslkeylog enabled by SSLKEYLOGFILE environment variable\n' |
388 ) | 388 ) |
389 except ImportError: | 389 except ImportError: |
390 ui.warn( | 390 ui.warnnoi18n( |
391 b'sslkeylog module missing, ' | 391 b'sslkeylog module missing, ' |
392 b'but SSLKEYLOGFILE set in environment\n' | 392 b'but SSLKEYLOGFILE set in environment\n' |
393 ) | 393 ) |
394 | 394 |
395 for f in (keyfile, certfile): | 395 for f in (keyfile, certfile): |