Browse Source

move socket/ssl monkey patch to steam client

pull/18/merge
Rossen Georgiev 9 years ago
parent
commit
8ebfe36a20
  1. 4
      steam/client/__init__.py
  2. 6
      steam/util/web.py

4
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

6
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()

Loading…
Cancel
Save