Skip to content

Commit

Permalink
The requests library does not take a config parameter anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Keane committed Feb 15, 2013
1 parent 3d85cd4 commit 2684970
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyfaceb/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
BASE_GRAPH_URL = "https://graph.facebook.com"
BATCH_QUERY_LIMIT = 50
TIMEOUT = 60.0
REQUESTS_CONFIG = {'max_retries': 2}
VERIFY_SSL = False

log = logging.getLogger(__name__)
Expand Down Expand Up @@ -155,7 +154,7 @@ def _issue_request(self, method, relative_url, **kwargs):

self._exec_hook('pre')
try:
r = requests.request(method, url, config=REQUESTS_CONFIG, **kwargs)
r = requests.request(method, url, **kwargs)
except (SSLError, Timeout) as e:
raise FBConnectionException(e.message)
self._exec_hook('post')
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requests>=0.10
mock>=0.8.0
mock==1.0.1
requests==1.1.0

0 comments on commit 2684970

Please sign in to comment.