forked from ValvePython/steam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove gevent monkey patch by default in steam.client (ValvePython#364)
* remove gevent monkey patch by default in steam.client * add entry to changelog
- Loading branch information
1 parent
f48192b
commit 107ef80
Showing
6 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
monkey | ||
====== | ||
|
||
.. automodule:: steam.client.monkey | ||
:members: | ||
:show-inheritance: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
Helper moduel for calling ``gevent`` monkey patch functions. | ||
This only need to if want to make stdlib gevent cooperative. | ||
The patches need to be applied before any other module imports. | ||
See :mod:`gevent.monkey` for details | ||
.. code:: python | ||
import steam.client.monkey | ||
steam.client.monkey.patch_minimal() | ||
import requests | ||
from steam.client import SteamClient, EMsg | ||
""" | ||
|
||
def patch_minimal(): | ||
""" | ||
This method needs to be called before any other imports | ||
It calls :meth:`gevent.monkey.patch_socket()` and :meth:`gevent.monkey.patch_ssl()` | ||
""" | ||
import gevent.monkey | ||
gevent.monkey.patch_socket() | ||
gevent.monkey.patch_ssl() | ||
gevent.monkey.patch_dns() |