Adding 'import requests' to readme code snippet. (#3700)

* added import requests to small demo
This commit is contained in:
Rakib Hasan
2016-11-17 03:23:57 -05:00
committed by Cory Benfield
parent 1e198f9115
commit 7e138f945e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ Behold, the power of Requests:
.. code-block:: python
>>> import requests
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
>>> r.status_code
200
+1
View File
@@ -17,6 +17,7 @@ constantly reading documentation, depression, headaches, or even death.
Behold, the power of Requests::
>>> import requests
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
>>> r.status_code
200