From 7e138f945ed6ec0179cf0619e0a3ad3f22db3c55 Mon Sep 17 00:00:00 2001 From: Rakib Hasan Date: Thu, 17 Nov 2016 03:23:57 -0500 Subject: [PATCH] Adding 'import requests' to readme code snippet. (#3700) * added import requests to small demo --- README.rst | 1 + docs/index.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/README.rst b/README.rst index fbcb393f..146dc06d 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/docs/index.rst b/docs/index.rst index d8279a9c..160596d0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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