Skip to content

Commit

Permalink
Fix SSL wrapper usage example in Factory docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
homeworkprod committed Apr 20, 2024
1 parent 30d8a67 commit 7172623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irc/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Factory:
context = ssl.create_default_context()
wrapper = functools.partial(context.wrap_socket, server_hostname=server_address)
Factory(wrapper=ssl.wrap_socket)(server_address)
Factory(wrapper=wrapper)(server_address)
To create an SSL connection with parameters to wrap_socket:
Expand Down

0 comments on commit 7172623

Please sign in to comment.