Skip to content

Commit

Permalink
Merge branch 'dev' into rewrite-textbook
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyizheng02 committed Aug 17, 2024
2 parents 72f8106 + f9f3def commit bdd4eed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pittapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""

# grequests monkey-patches ssl, but this must be done before all other imports,
# or else we may get a MonkeyPatchWarning or a RecursionError
# See https://github.com/spyoungtech/grequests/issues/150 and https://github.com/gevent/gevent/issues/1016
from gevent import monkey

monkey.patch_all(thread=False, select=False)

import urllib3
from urllib3.exceptions import InsecureRequestWarning

Expand Down

0 comments on commit bdd4eed

Please sign in to comment.