From: s7v7nislands Date: Fri, 19 Jul 2013 09:04:53 +0000 (+0800) Subject: fix doc X-Git-Tag: 2.0~19^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0df505bd7cd6c256651b5847a1e26e3bbb0d36c5;p=services%2Fpython-requests.git fix doc --- diff --git a/docs/dev/todo.rst b/docs/dev/todo.rst index 794c3fe..ec33b7f 100644 --- a/docs/dev/todo.rst +++ b/docs/dev/todo.rst @@ -55,6 +55,6 @@ Are you crazy? - SPDY support would be awesome. No C extensions. Downstream Repackaging --------------------- +---------------------- If you are repackaging Requests, please note that you must also redistribute the ``cacerts.pem`` file in order to get correct SSL functionality. diff --git a/docs/user/intro.rst b/docs/user/intro.rst index ae5e639..816ad0a 100644 --- a/docs/user/intro.rst +++ b/docs/user/intro.rst @@ -20,7 +20,7 @@ All contributions to Requests should keep these important rules in mind. .. _`apache2`: Apache2 License ------------ +--------------- A large number of open source projects you find today are `GPL Licensed`_. While the GPL has its time and place, it should most certainly not be your diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index 59d75cc..0c89b40 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -69,7 +69,7 @@ following code:: You can see that the URL has been correctly encoded by printing the URL:: >>> print r.url - u'http://httpbin.org/get?key2=value2&key1=value1' + http://httpbin.org/get?key2=value2&key1=value1 Response Content @@ -81,7 +81,7 @@ again:: >>> import requests >>> r = requests.get('https://github.com/timeline.json') >>> r.text - '[{"repository":{"open_issues":0,"url":"https://github.com/... + u'[{"repository":{"open_issues":0,"url":"https://github.com/... Requests will automatically decode content from the server. Most unicode charsets are seamlessly decoded. @@ -310,11 +310,6 @@ So, we can access the headers using any capitalization we want:: >>> r.headers.get('content-type') 'application/json; charset=utf-8' -If a header doesn't exist in the Response, its value defaults to ``None``:: - - >>> r.headers['X-Random'] - None - Cookies -------