Skip to content

Commit 2676371

Browse files
committed
Fix all whitespace issues. Patch from [email protected].
1 parent fe22a15 commit 2676371

24 files changed

+269
-269
lines changed

README

100755100644
+41-41
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,41 @@ Httplib2
33
--------------------------------------------------------------------
44
Introduction
55

6-
A comprehensive HTTP client library, httplib2.py supports many
6+
A comprehensive HTTP client library, httplib2.py supports many
77
features left out of other HTTP libraries.
88

99
HTTP and HTTPS
10-
HTTPS support is only available if the socket module was
11-
compiled with SSL support.
10+
HTTPS support is only available if the socket module was
11+
compiled with SSL support.
1212
Keep-Alive
13-
Supports HTTP 1.1 Keep-Alive, keeping the socket open and
14-
performing multiple requests over the same connection if
15-
possible.
13+
Supports HTTP 1.1 Keep-Alive, keeping the socket open and
14+
performing multiple requests over the same connection if
15+
possible.
1616
Authentication
17-
The following three types of HTTP Authentication are
17+
The following three types of HTTP Authentication are
1818
supported. These can be used over both HTTP and HTTPS.
1919

2020
* Digest
2121
* Basic
2222
* WSSE
2323

2424
Caching
25-
The module can optionally operate with a private cache that
26-
understands the Cache-Control: header and uses both the ETag
27-
and Last-Modified cache validators.
25+
The module can optionally operate with a private cache that
26+
understands the Cache-Control: header and uses both the ETag
27+
and Last-Modified cache validators.
2828
All Methods
29-
The module can handle any HTTP request method, not just GET
29+
The module can handle any HTTP request method, not just GET
3030
and POST.
3131
Redirects
3232
Automatically follows 3XX redirects on GETs.
3333
Compression
3434
Handles both 'deflate' and 'gzip' types of compression.
3535
Lost update support
36-
Automatically adds back ETags into PUT requests to resources
37-
we have already cached. This implements Section 3.2 of
36+
Automatically adds back ETags into PUT requests to resources
37+
we have already cached. This implements Section 3.2 of
3838
Detecting the Lost Update Problem Using Unreserved Checkout.
3939
Unit Tested
40-
A large and growing set of unit tests.
40+
A large and growing set of unit tests.
4141

4242

4343
For more information on this module, see:
@@ -63,16 +63,16 @@ A simple retrieval:
6363
h = httplib2.Http(".cache")
6464
(resp_headers, content) = h.request("http://example.org/", "GET")
6565

66-
The 'content' is the content retrieved from the URL. The content
66+
The 'content' is the content retrieved from the URL. The content
6767
is already decompressed or unzipped if necessary.
6868

6969
To PUT some content to a server that uses SSL and Basic authentication:
7070

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

7878
Use the Cache-Control: header to control how the caching operates.
@@ -81,42 +81,42 @@ Use the Cache-Control: header to control how the caching operates.
8181
h = httplib2.Http(".cache")
8282
(resp, content) = h.request("http://bitworking.org/", "GET")
8383
...
84-
(resp, content) = h.request("http://bitworking.org/", "GET",
84+
(resp, content) = h.request("http://bitworking.org/", "GET",
8585
headers={'cache-control':'no-cache'})
8686

87-
The first request will be cached and since this is a request
88-
to bitworking.org it will be set to be cached for two hours,
89-
because that is how I have my server configured. Any subsequent
90-
GET to that URI will return the value from the on-disk cache
91-
and no request will be made to the server. You can use the
92-
Cache-Control: header to change the caches behavior and in
93-
this example the second request adds the Cache-Control:
94-
header with a value of 'no-cache' which tells the library
95-
that the cached copy must not be used when handling this request.
87+
The first request will be cached and since this is a request
88+
to bitworking.org it will be set to be cached for two hours,
89+
because that is how I have my server configured. Any subsequent
90+
GET to that URI will return the value from the on-disk cache
91+
and no request will be made to the server. You can use the
92+
Cache-Control: header to change the caches behavior and in
93+
this example the second request adds the Cache-Control:
94+
header with a value of 'no-cache' which tells the library
95+
that the cached copy must not be used when handling this request.
9696

9797

9898
--------------------------------------------------------------------
9999
Httplib2 Software License
100100

101101
Copyright (c) 2006 by Joe Gregorio
102102

103-
Permission is hereby granted, free of charge, to any person
104-
obtaining a copy of this software and associated documentation
105-
files (the "Software"), to deal in the Software without restriction,
106-
including without limitation the rights to use, copy, modify, merge,
107-
publish, distribute, sublicense, and/or sell copies of the Software,
108-
and to permit persons to whom the Software is furnished to do so,
103+
Permission is hereby granted, free of charge, to any person
104+
obtaining a copy of this software and associated documentation
105+
files (the "Software"), to deal in the Software without restriction,
106+
including without limitation the rights to use, copy, modify, merge,
107+
publish, distribute, sublicense, and/or sell copies of the Software,
108+
and to permit persons to whom the Software is furnished to do so,
109109
subject to the following conditions:
110110

111-
The above copyright notice and this permission notice shall be
111+
The above copyright notice and this permission notice shall be
112112
included in all copies or substantial portions of the Software.
113113

114-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
115-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
116-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
117-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
118-
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
119-
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
120-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
114+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
115+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
116+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
117+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
118+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
119+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
120+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
121121
SOFTWARE.
122122

doc/html/_sources/libhttplib2.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.. % Template for a library manual section.
22
.. % PLEASE REMOVE THE COMMENTS AFTER USING THE TEMPLATE
3-
.. %
3+
.. %
44
.. % Complete documentation on the extended LaTeX markup used for Python
55
.. % documentation is available in ``Documenting Python'', which is part
66
.. % of the standard documentation for Python. It may be found online
77
.. % at:
8-
.. %
8+
.. %
99
.. % http://www.python.org/doc/current/doc/doc.html
1010
.. % ==== 0. ====
1111
.. % Copy this file to <mydir>/lib<mymodule>.tex, and edit that file
@@ -29,15 +29,15 @@
2929
.. % Choose one of these to specify the module module name. If there's
3030
.. % an underscore in the name, use
3131
.. % \declaremodule[modname]{...}{mod_name} instead.
32-
.. %
32+
.. %
3333
.. % not standard, in Python
3434
.. % Portability statement: Uncomment and fill in the parameter to specify the
3535
.. % availability of the module. The parameter can be Unix, IRIX, SunOS, Mac,
3636
.. % Windows, or lots of other stuff. When ``Mac'' is specified, the availability
3737
.. % statement will say ``Macintosh'' and the Module Index may say ``Mac''.
3838
.. % Please use a name that has already been used whenever applicable. If this
3939
.. % is omitted, no availability statement is produced or implied.
40-
.. %
40+
.. %
4141
.. % \platform{Unix}
4242
.. % These apply to all modules, and may be given more than once:
4343
.. % Author of the module code;
@@ -180,16 +180,16 @@ code indicating an error occured. See
180180

181181
.. % ---- 3.4. ----
182182
.. % Other standard environments:
183-
.. %
184-
.. % classdesc - Python classes; same arguments are funcdesc
185-
.. % methoddesc - methods, like funcdesc but has an optional parameter
183+
.. %
184+
.. % classdesc - Python classes; same arguments are funcdesc
185+
.. % methoddesc - methods, like funcdesc but has an optional parameter
186186
.. % to give the type name: \begin{methoddesc}[mytype]{name}{args}
187187
.. % By default, the type name will be the name of the
188188
.. % last class defined using classdesc. The type name
189189
.. % is required if the type is implemented in C (because
190190
.. % there's no classdesc) or if the class isn't directly
191191
.. % documented (if it's private).
192-
.. % memberdesc - data members, like datadesc, but with an optional
192+
.. % memberdesc - data members, like datadesc, but with an optional
193193
.. % type name like methoddesc.
194194

195195

@@ -441,8 +441,8 @@ directory ``.cache``. ::
441441
import httplib2
442442
h = httplib2.Http(".cache")
443443
h.add_credentials('name', 'password')
444-
resp, content = h.request("https://example.org/chap/2",
445-
"PUT", body="This is text",
444+
resp, content = h.request("https://example.org/chap/2",
445+
"PUT", body="This is text",
446446
headers={'content-type':'text/plain'} )
447447

448448
Here is an example that connects to a server that supports the Atom Publishing

doc/html/genindex.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html xmlns="http://www.w3.org/1999/xhtml">
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7-
7+
88
<title>Index &mdash; httplib2 v0.4 documentation</title>
99
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@@ -19,7 +19,7 @@
1919
</script>
2020
<script type="text/javascript" src="_static/jquery.js"></script>
2121
<script type="text/javascript" src="_static/doctools.js"></script>
22-
<link rel="top" title="httplib2 v0.4 documentation" href="index.html" />
22+
<link rel="top" title="httplib2 v0.4 documentation" href="index.html" />
2323
</head>
2424
<body>
2525
<div class="related">
@@ -31,23 +31,23 @@ <h3>Navigation</h3>
3131
<li class="right" >
3232
<a href="modindex.html" title="Global Module Index"
3333
accesskey="M">modules</a> |</li>
34-
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
34+
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
3535
</ul>
36-
</div>
36+
</div>
3737

3838
<div class="document">
3939
<div class="documentwrapper">
4040
<div class="bodywrapper">
4141
<div class="body">
42-
42+
4343

4444
<h1 id="index">Index</h1>
4545

46-
<a href="#A"><strong>A</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#O"><strong>O</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#U"><strong>U</strong></a> | <a href="#V"><strong>V</strong></a>
46+
<a href="#A"><strong>A</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#O"><strong>O</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#U"><strong>U</strong></a> | <a href="#V"><strong>V</strong></a>
4747

4848
<hr />
4949

50-
50+
5151
<h2 id="A">A</h2>
5252
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
5353
<dl>
@@ -167,7 +167,7 @@ <h2 id="V">V</h2>
167167
<div class="sphinxsidebar">
168168
<div class="sphinxsidebarwrapper">
169169

170-
170+
171171

172172
<div id="searchbox" style="display: none">
173173
<h3>Quick search</h3>
@@ -195,7 +195,7 @@ <h3>Navigation</h3>
195195
<li class="right" >
196196
<a href="modindex.html" title="Global Module Index"
197197
>modules</a> |</li>
198-
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
198+
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
199199
</ul>
200200
</div>
201201
<div class="footer">
@@ -204,4 +204,4 @@ <h3>Navigation</h3>
204204
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.4.
205205
</div>
206206
</body>
207-
</html>
207+
</html>

doc/html/index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html xmlns="http://www.w3.org/1999/xhtml">
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7-
7+
88
<title>The httplib2 Library &mdash; httplib2 v0.4 documentation</title>
99
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@@ -20,7 +20,7 @@
2020
<script type="text/javascript" src="_static/jquery.js"></script>
2121
<script type="text/javascript" src="_static/doctools.js"></script>
2222
<link rel="top" title="httplib2 v0.4 documentation" href="#" />
23-
<link rel="next" title="httplib2 A comprehensive HTTP client library." href="libhttplib2.html" />
23+
<link rel="next" title="httplib2 A comprehensive HTTP client library." href="libhttplib2.html" />
2424
</head>
2525
<body>
2626
<div class="related">
@@ -35,15 +35,15 @@ <h3>Navigation</h3>
3535
<li class="right" >
3636
<a href="libhttplib2.html" title="httplib2 A comprehensive HTTP client library."
3737
accesskey="N">next</a> |</li>
38-
<li><a href="#">httplib2 v0.4 documentation</a> &raquo;</li>
38+
<li><a href="#">httplib2 v0.4 documentation</a> &raquo;</li>
3939
</ul>
40-
</div>
40+
</div>
4141

4242
<div class="document">
4343
<div class="documentwrapper">
4444
<div class="bodywrapper">
4545
<div class="body">
46-
46+
4747
<div class="section" id="the-httplib2-library">
4848
<h1>The httplib2 Library<a class="headerlink" href="#the-httplib2-library" title="Permalink to this headline"></a></h1>
4949
<table class="docutils field-list" frame="void" rules="none">
@@ -132,7 +132,7 @@ <h3>Navigation</h3>
132132
<li class="right" >
133133
<a href="libhttplib2.html" title="httplib2 A comprehensive HTTP client library."
134134
>next</a> |</li>
135-
<li><a href="#">httplib2 v0.4 documentation</a> &raquo;</li>
135+
<li><a href="#">httplib2 v0.4 documentation</a> &raquo;</li>
136136
</ul>
137137
</div>
138138
<div class="footer">
@@ -141,4 +141,4 @@ <h3>Navigation</h3>
141141
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.4.
142142
</div>
143143
</body>
144-
</html>
144+
</html>

doc/html/libhttplib2.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html xmlns="http://www.w3.org/1999/xhtml">
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7-
7+
88
<title>httplib2 A comprehensive HTTP client library. &mdash; httplib2 v0.4 documentation</title>
99
<link rel="stylesheet" href="_static/default.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@@ -20,7 +20,7 @@
2020
<script type="text/javascript" src="_static/jquery.js"></script>
2121
<script type="text/javascript" src="_static/doctools.js"></script>
2222
<link rel="top" title="httplib2 v0.4 documentation" href="index.html" />
23-
<link rel="prev" title="The httplib2 Library" href="index.html" />
23+
<link rel="prev" title="The httplib2 Library" href="index.html" />
2424
</head>
2525
<body>
2626
<div class="related">
@@ -35,15 +35,15 @@ <h3>Navigation</h3>
3535
<li class="right" >
3636
<a href="index.html" title="The httplib2 Library"
3737
accesskey="P">previous</a> |</li>
38-
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
38+
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
3939
</ul>
40-
</div>
40+
</div>
4141

4242
<div class="document">
4343
<div class="documentwrapper">
4444
<div class="bodywrapper">
4545
<div class="body">
46-
46+
4747
<div class="section" id="module-httplib2">
4848
<h1><tt class="xref docutils literal"><span class="pre">httplib2</span></tt> A comprehensive HTTP client library.<a class="headerlink" href="#module-httplib2" title="Permalink to this headline"></a></h1>
4949
<p>The <tt class="xref docutils literal"><span class="pre">httplib2</span></tt> module is a comprehensive HTTP client library with the
@@ -478,7 +478,7 @@ <h3>Navigation</h3>
478478
<li class="right" >
479479
<a href="index.html" title="The httplib2 Library"
480480
>previous</a> |</li>
481-
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
481+
<li><a href="index.html">httplib2 v0.4 documentation</a> &raquo;</li>
482482
</ul>
483483
</div>
484484
<div class="footer">
@@ -487,4 +487,4 @@ <h3>Navigation</h3>
487487
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.4.
488488
</div>
489489
</body>
490-
</html>
490+
</html>

0 commit comments

Comments
 (0)