Skip to content
Myr

Merge branch 'master' into patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alvaro Gutierrez Perez · committed by GitHub · parents d165b18, db9da3e · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:requests/sessions.py+2 added-2 removed
6 unmodified lines
7This module provides a Session object to manage and persist settings across8requests (cookies, auth, proxies).9"""10import os11import platform11import sys12import time13from collections import Mapping14from datetime import timedelta15
21 unmodified lines
37# formerly defined here, reexposed here for backward compatibility38from .models import REDIRECT_STATI3940# Preferred clock, based on which one is more accurate on a given system.41if platform.system() == 'Windows':41if sys.platform == 'win32':42 try: # Python 3.4+43 preferred_clock = time.perf_counter44 except AttributeError: # Earlier than Python 3.45 preferred_clock = time.clock
692 unmodified lines
modified:requests/utils.py+2 added-2 removed
12 unmodified lines
13import collections14import contextlib15import io16import os17import platform17import re18import socket19import struct20import sys21import warnings2223from .__version__ import __version__24from . import certs
13 unmodified lines
3839DEFAULT_CA_BUNDLE_PATH = certs.where()404142if platform.system() == 'Windows':42if sys.platform == 'win32':43 # provide a proxy_bypass version on Windows without DNS lookups4445 def proxy_bypass_registry(host):46 if is_py3:
862 unmodified lines