From 2676371c9effe05169ed590d92f4692b712bd2a4 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Tue, 19 Feb 2013 15:57:37 -0500 Subject: Fix all whitespace issues. Patch from dhermes@google.com. --- ref/cache-objects.html | 2 +- ref/http-objects.html | 6 +++--- ref/httplib2-example.html | 20 ++++++++++---------- ref/index.html | 2 +- ref/module-httplib2.html | 32 ++++++++++++++++---------------- ref/node2.html | 2 +- ref/ref.html | 2 +- ref/response-objects.html | 2 +- 8 files changed, 34 insertions(+), 34 deletions(-) mode change 100755 => 100644 ref/cache-objects.html mode change 100755 => 100644 ref/http-objects.html mode change 100755 => 100644 ref/httplib2-example.html mode change 100755 => 100644 ref/index.html mode change 100755 => 100644 ref/module-httplib2.html mode change 100755 => 100644 ref/node2.html mode change 100755 => 100644 ref/ref.html mode change 100755 => 100644 ref/response-objects.html (limited to 'ref') diff --git a/ref/cache-objects.html b/ref/cache-objects.html old mode 100755 new mode 100644 index dcf9465..9baa7c2 --- a/ref/cache-objects.html +++ b/ref/cache-objects.html @@ -57,7 +57,7 @@

If you wish to supply your own caching implementation -then you will need to pass in an object that supports the +then you will need to pass in an object that supports the following methods. Note that the memcache module supports this interface natively. diff --git a/ref/http-objects.html b/ref/http-objects.html old mode 100755 new mode 100644 index 597b7d5..603e52a --- a/ref/http-objects.html +++ b/ref/http-objects.html @@ -95,7 +95,7 @@ The return value is a tuple of (response, content), the first being and instance add_credentials( name, password, [domain=None])

-Adds a name and password that will be used when a request +Adds a name and password that will be used when a request requires authentication. Supplying the optional domain name will restrict these credentials to only be sent to the specified domain. If domain is not specified then the given credentials will @@ -108,8 +108,8 @@ be used to try to satisfy every HTTP 401 challenge. key, cert, domain)
Add a key and cert that will be used for an SSL connection -to the specified domain. keyfile is the name of a PEM formatted -file that contains your private key. certfile is a PEM formatted certificate chain file. +to the specified domain. keyfile is the name of a PEM formatted +file that contains your private key. certfile is a PEM formatted certificate chain file.

diff --git a/ref/httplib2-example.html b/ref/httplib2-example.html old mode 100755 new mode 100644 index 756942b..6607efe --- a/ref/httplib2-example.html +++ b/ref/httplib2-example.html @@ -50,7 +50,7 @@


-1.1.4 Examples +1.1.4 Examples

@@ -67,23 +67,23 @@ assert resp['content-type'] == 'text/html'

-Here is more complex example that does a PUT +Here is more complex example that does a PUT of some text to a resource that requires authentication. The Http instance also uses a file cache -in the directory .cache. +in the directory .cache.

 import httplib2
 h = httplib2.Http(".cache")
 h.add_credentials('name', 'password')
-resp, content = h.request("https://example.org/chap/2", 
-    "PUT", body="This is text", 
+resp, content = h.request("https://example.org/chap/2",
+    "PUT", body="This is text",
     headers={'content-type':'text/plain'} )
 

-Here is an example that connects to a server that +Here is an example that connects to a server that supports the Atom Publishing Protocol.

@@ -108,8 +108,8 @@ resp, content = h.request(uri, "POST", body=body, headers=headers)

Here is an example of providing data to an HTML form processor. -In this case we presume this is a POST form. We need to take our -data and format it as "application/x-www-form-urlencoded" data and use that as a +In this case we presume this is a POST form. We need to take our +data and format it as "application/x-www-form-urlencoded" data and use that as a body for a POST request.

@@ -142,9 +142,9 @@ r,c = h.request("http://bitworking.org/news/") WIDTH="556" HEIGHT="20" ALIGN="BOTTOM" BORDER="0" SRC="img1.png" ALT="\begin{center}\vbox{\input{modref.ind} -}\end{center}"> +}\end{center}">

- +