mercurial/sslutil.py
branchstable
changeset 46785 521ac0d7047f
parent 46113 59fa3890d40a
child 46786 52528570312e
equal deleted inserted replaced
46784:65f437c240f2 46785:521ac0d7047f
   267     if not serverhostname:
   267     if not serverhostname:
   268         raise error.Abort(_(b'serverhostname argument is required'))
   268         raise error.Abort(_(b'serverhostname argument is required'))
   269 
   269 
   270     if b'SSLKEYLOGFILE' in encoding.environ:
   270     if b'SSLKEYLOGFILE' in encoding.environ:
   271         try:
   271         try:
   272             import sslkeylog
   272             import sslkeylog  # pytype: disable=import-error
   273 
   273 
   274             sslkeylog.set_keylog(
   274             sslkeylog.set_keylog(
   275                 pycompat.fsdecode(encoding.environ[b'SSLKEYLOGFILE'])
   275                 pycompat.fsdecode(encoding.environ[b'SSLKEYLOGFILE'])
   276             )
   276             )
   277             ui.warnnoi18n(
   277             ui.warnnoi18n(