Skip to content

Commit

Permalink
sslutil: remove the default value for serverhostname
Browse files Browse the repository at this point in the history
Summary:
`serverhostname` is a required parameter, it does not make sense to have a
default None value. This diff removes the default value.

Differential Revision: D69091962

fbshipit-source-id: ad0f29eac714c949df1730528b4b192bd609e5a9
  • Loading branch information
zzl0 authored and facebook-github-bot committed Feb 4, 2025
1 parent 9704018 commit 39c5063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eden/scm/sapling/sslutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def protocolsettings(protocol: str) -> Tuple[ssl._SSLMethod, int, str]:
return ssl.PROTOCOL_SSLv23, options, protocol


def wrapsocket(sock, keyfile, certfile, ui, serverhostname=None):
def wrapsocket(sock, keyfile, certfile, ui, serverhostname):
"""Add SSL/TLS to a socket.
This is a glorified wrapper for ``ssl.wrap_socket()``. It makes sane
Expand Down

0 comments on commit 39c5063

Please sign in to comment.