Docs: Fix :class: and :meth: directives
authorDavid Pursehouse <david.pursehouse@sonymobile.com>
Wed, 16 Jul 2014 01:40:16 +0000 (10:40 +0900)
committerDavid Pursehouse <david.pursehouse@sonymobile.com>
Wed, 16 Jul 2014 01:50:57 +0000 (10:50 +0900)
A few instances of the directives were malformed and did not
result in hyperlinks in the generated HTML.

Change-Id: I94d93de928ee4ff24a48797baf2ac77598a20704

docs/user/advanced.rst
docs/user/quickstart.rst

index 6343e48fada15f5e724ab767462839389b401218..95dd6be6adaea49bf64fee1322d1818f5aedc8ae 100644 (file)
@@ -80,7 +80,7 @@ request, and then the request's headers::
 Prepared Requests
 -----------------
 
-Whenever you receive a :class:`Response <requests.models.Response>` object
+Whenever you receive a :class:`Response <requests.Response>` object
 from an API call or a Session call, the ``request`` attribute is actually the
 ``PreparedRequest`` that was used. In some cases you may wish to do some extra
 work to the body or headers (or anything else really) before sending a
@@ -117,7 +117,7 @@ However, the above code will lose some of the advantages of having a Requests
 :class:`Session <requests.Session>` object. In particular,
 :class:`Session <requests.Session>`-level state such as cookies will
 not get applied to your request. To get a
-:class:`PreparedRequest <requests.models.PreparedRequest>` with that state
+:class:`PreparedRequest <requests.PreparedRequest>` with that state
 applied, replace the call to :meth:`Request.prepare()
 <requests.Request.prepare>` with a call to
 :meth:`Session.prepare_request() <requests.Session.prepare_request>`, like this::
index 128c5780dbd610024335676ea2672c8929d08082..6bd82f7da079239ec3e2afce2b8cb8f06ce55935 100644 (file)
@@ -367,9 +367,10 @@ HEAD.
 
 We can use the ``history`` property of the Response object to track redirection.
 
-The :meth:`Response.history` list contains the :class:`Request` objects that
-were created in order to complete the request. The list is sorted from the
-oldest to the most recent request.
+The :meth:`Response.history <requests.Response.history>` list contains the
+:class:`Request <requests.Request>` objects that were created in order to
+complete the request. The list is sorted from the oldest to the most recent
+request.
 
 For example, GitHub redirects all HTTP requests to HTTPS::