Skip to content

fix HTTPSConnection Params for python 3#1

Open
mengguang wants to merge 1 commit intobmwant:mainfrom
mengguang:patch-1
Open

fix HTTPSConnection Params for python 3#1
mengguang wants to merge 1 commit intobmwant:mainfrom
mengguang:patch-1

Conversation

@mengguang
Copy link

According to the Python 3 document:
https://docs.python.org/3.11/library/http.client.html?highlight=httpsconnection#http.client.HTTPSConnection
The False param should not be there, otherwise it will report error:
TypeError: bind(): AF_INET address must be tuple, not int

@mengguang
Copy link
Author

It's better to use keyword arguments for timeout and remove key_file and cert_file params.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant