@@ -100,7 +100,7 @@ class RestSession(object):
100100 def __init__ (self , access_token , base_url ,
101101 single_request_timeout = DEFAULT_SINGLE_REQUEST_TIMEOUT ,
102102 wait_on_rate_limit = DEFAULT_WAIT_ON_RATE_LIMIT ,
103- proxy_dict = None ):
103+ proxies = None ):
104104 """Initialize a new RestSession object.
105105
106106 Args:
@@ -112,7 +112,7 @@ def __init__(self, access_token, base_url,
112112 HTTP REST API request.
113113 wait_on_rate_limit(bool): Enable or disable automatic rate-limit
114114 handling.
115- proxy_dict (dict): Dictionary of proxies passed on to the requests
115+ proxies (dict): Dictionary of proxies passed on to the requests
116116 session.
117117
118118 Raises:
@@ -123,7 +123,7 @@ def __init__(self, access_token, base_url,
123123 check_type (base_url , basestring , may_be_none = False )
124124 check_type (single_request_timeout , int )
125125 check_type (wait_on_rate_limit , bool , may_be_none = False )
126- check_type (proxy_dict , dict , may_be_none = True )
126+ check_type (proxies , dict , may_be_none = True )
127127
128128 super (RestSession , self ).__init__ ()
129129
@@ -136,8 +136,8 @@ def __init__(self, access_token, base_url,
136136 # Initialize a new `requests` session
137137 self ._req_session = requests .session ()
138138
139- if proxy_dict is not None :
140- self ._req_session .proxies .update (proxy_dict )
139+ if proxies is not None :
140+ self ._req_session .proxies .update (proxies )
141141
142142 # Update the headers of the `requests` session
143143 self .update_headers ({'Authorization' : 'Bearer ' + access_token ,
0 commit comments