Skip to content

Commit

Permalink
Merge pull request #259 from vikpe/patch-1
Browse files Browse the repository at this point in the history
Fix invalid syntax in session docs.
  • Loading branch information
sigmavirus24 authored Feb 19, 2019
2 parents 5bcd1c7 + 7c4f92b commit bc1b273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requests_toolbelt/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class BaseUrlSession(requests.Session):
>>> from requests_toolbelt import sessions
>>> s = sessions.BaseUrlSession(
... base_url='https://example.com/resource/')
>>> r = s.get('sub-resource/' params={'foo': 'bar'})
>>> r = s.get('sub-resource/', params={'foo': 'bar'})
>>> print(r.request.url)
https://example.com/resource/sub-resource/?foo=bar
Expand All @@ -36,7 +36,7 @@ class BaseUrlSession(requests.Session):
>>> from requests_toolbelt import sessions
>>> s = sessions.BaseUrlSession(
... base_url='https://example.com/resource/')
>>> r = s.get('/sub-resource/' params={'foo': 'bar'})
>>> r = s.get('/sub-resource/', params={'foo': 'bar'})
>>> print(r.request.url)
https://example.com/sub-resource/?foo=bar
Expand Down

0 comments on commit bc1b273

Please sign in to comment.