diff --git a/steam/client/__init__.py b/steam/client/__init__.py index 5e59876..9e48a8e 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -1,6 +1,10 @@ import os import logging import gevent +import gevent.monkey +gevent.monkey.patch_socket() +gevent.monkey.patch_ssl() + from Crypto.Hash import SHA from eventemitter import EventEmitter from steam.enums.emsg import EMsg diff --git a/steam/util/web.py b/steam/util/web.py index 1c081c4..14fc5c1 100644 --- a/steam/util/web.py +++ b/steam/util/web.py @@ -1,12 +1,8 @@ import requests -import gevent.monkey -gevent.monkey.patch_socket() -gevent.monkey.patch_ssl() - def make_requests_session(): """ - :returns: gevent cooperative requests session + :returns: requests session :rtype: :class:`requests.Session` """ session = requests.Session()