Regenerate documentation
diff --git a/docs/httplib2.socks.html b/docs/httplib2.socks.html
index e8b2af3..6766560 100644
--- a/docs/httplib2.socks.html
+++ b/docs/httplib2.socks.html
@@ -8,14 +8,14 @@
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="httplib2.html"><font color="#ffffff">httplib2</font></a>.socks</strong></big></big></font></td
><td align=right valign=bottom
-><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/google-api-python-client/httplib2/socks.py">/home/jcgregorio/projects/google-api-python-client/httplib2/socks.py</a></font></td></tr></table>
+><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/local/google/home/jcgregorio/projects/apiclient/httplib2/socks.py">/usr/local/google/home/jcgregorio/projects/apiclient/httplib2/socks.py</a></font></td></tr></table>
<p><tt>SocksiPy - Python SOCKS module.<br>
Version 1.00<br>
<br>
Copyright 2006 Dan-Haim. All rights reserved.<br>
<br>
-Redistribution and use in source and binary forms, with or without<br>
-modification, are permitted provided that the following conditions are met:<br>
+Redistribution and use in source and binary forms, with or without modification,<br>
+are permitted provided that the following conditions are met:<br>
1. Redistributions of source code must retain the above copyright notice, this<br>
list of conditions and the following disclaimer.<br>
2. Redistributions in binary form must reproduce the above copyright notice,<br>
@@ -24,7 +24,7 @@
3. Neither the name of Dan Haim nor the names of his contributors may be used<br>
to endorse or promote products derived from this software without specific<br>
prior written permission.<br>
- <br>
+ <br>
THIS SOFTWARE IS PROVIDED BY DAN HAIM "AS IS" AND ANY EXPRESS OR IMPLIED<br>
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF<br>
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO<br>
@@ -33,7 +33,7 @@
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA<br>
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF<br>
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT<br>
-OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<br>
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMANGE.<br>
<br>
<br>
This module provides a standard socket-like interface for Python<br>
@@ -93,17 +93,15 @@
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
-Methods defined here:<br>
-<dl><dt><a name="GeneralProxyError-__init__"><strong>__init__</strong></a>(self, value)</dt></dl>
-
-<dl><dt><a name="GeneralProxyError-__str__"><strong>__str__</strong></a>(self)</dt></dl>
-
-<hr>
Data descriptors inherited from <a href="httplib2.socks.html#ProxyError">ProxyError</a>:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
+Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
+<dl><dt><a name="GeneralProxyError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#GeneralProxyError-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
+
+<hr>
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#GeneralProxyError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl>
@@ -127,6 +125,8 @@
<dl><dt><a name="GeneralProxyError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
+<dl><dt><a name="GeneralProxyError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#GeneralProxyError-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
+
<dl><dt><a name="GeneralProxyError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
<hr>
@@ -152,17 +152,15 @@
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
-Methods defined here:<br>
-<dl><dt><a name="HTTPError-__init__"><strong>__init__</strong></a>(self, value)</dt></dl>
-
-<dl><dt><a name="HTTPError-__str__"><strong>__str__</strong></a>(self)</dt></dl>
-
-<hr>
Data descriptors inherited from <a href="httplib2.socks.html#ProxyError">ProxyError</a>:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
+Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
+<dl><dt><a name="HTTPError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#HTTPError-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
+
+<hr>
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#HTTPError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl>
@@ -186,6 +184,8 @@
<dl><dt><a name="HTTPError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
+<dl><dt><a name="HTTPError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#HTTPError-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
+
<dl><dt><a name="HTTPError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
<hr>
@@ -210,17 +210,15 @@
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
-Methods defined here:<br>
-<dl><dt><a name="ProxyError-__init__"><strong>__init__</strong></a>(self, value)</dt></dl>
-
-<dl><dt><a name="ProxyError-__str__"><strong>__str__</strong></a>(self)</dt></dl>
-
-<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
+Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
+<dl><dt><a name="ProxyError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxyError-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
+
+<hr>
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#ProxyError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl>
@@ -244,6 +242,8 @@
<dl><dt><a name="ProxyError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
+<dl><dt><a name="ProxyError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#ProxyError-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
+
<dl><dt><a name="ProxyError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
<hr>
@@ -269,17 +269,15 @@
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
-Methods defined here:<br>
-<dl><dt><a name="Socks4Error-__init__"><strong>__init__</strong></a>(self, value)</dt></dl>
-
-<dl><dt><a name="Socks4Error-__str__"><strong>__str__</strong></a>(self)</dt></dl>
-
-<hr>
Data descriptors inherited from <a href="httplib2.socks.html#ProxyError">ProxyError</a>:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
+Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
+<dl><dt><a name="Socks4Error-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Socks4Error-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
+
+<hr>
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Socks4Error-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl>
@@ -303,6 +301,8 @@
<dl><dt><a name="Socks4Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
+<dl><dt><a name="Socks4Error-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#Socks4Error-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
+
<dl><dt><a name="Socks4Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
<hr>
@@ -328,17 +328,15 @@
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
-Methods defined here:<br>
-<dl><dt><a name="Socks5AuthError-__init__"><strong>__init__</strong></a>(self, value)</dt></dl>
-
-<dl><dt><a name="Socks5AuthError-__str__"><strong>__str__</strong></a>(self)</dt></dl>
-
-<hr>
Data descriptors inherited from <a href="httplib2.socks.html#ProxyError">ProxyError</a>:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
+Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
+<dl><dt><a name="Socks5AuthError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Socks5AuthError-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
+
+<hr>
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Socks5AuthError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl>
@@ -362,6 +360,8 @@
<dl><dt><a name="Socks5AuthError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
+<dl><dt><a name="Socks5AuthError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#Socks5AuthError-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
+
<dl><dt><a name="Socks5AuthError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
<hr>
@@ -387,17 +387,15 @@
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
-Methods defined here:<br>
-<dl><dt><a name="Socks5Error-__init__"><strong>__init__</strong></a>(self, value)</dt></dl>
-
-<dl><dt><a name="Socks5Error-__str__"><strong>__str__</strong></a>(self)</dt></dl>
-
-<hr>
Data descriptors inherited from <a href="httplib2.socks.html#ProxyError">ProxyError</a>:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<hr>
+Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
+<dl><dt><a name="Socks5Error-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Socks5Error-__init__">__init__</a>(...) initializes x; see help(type(x)) for signature</tt></dd></dl>
+
+<hr>
Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Socks5Error-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl>
@@ -421,6 +419,8 @@
<dl><dt><a name="Socks5Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
+<dl><dt><a name="Socks5Error-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#Socks5Error-__str__">__str__</a>() <==> str(x)</tt></dd></dl>
+
<dl><dt><a name="Socks5Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl>
<hr>
@@ -439,7 +439,6 @@
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt><a href="#socksocket">socksocket</a>([family[, type[, proto]]]) -> socket object<br>
- <br>
Open a SOCKS enabled socket. The parameters are the same as<br>
those of the standard socket init. In order for SOCKS to work,<br>
you must specify family=AF_INET, type=SOCK_STREAM and proto=0.<br> </tt></td></tr>
@@ -453,7 +452,7 @@
Methods defined here:<br>
<dl><dt><a name="socksocket-__init__"><strong>__init__</strong></a>(self, family<font color="#909090">=2</font>, type<font color="#909090">=1</font>, proto<font color="#909090">=0</font>, _sock<font color="#909090">=None</font>)</dt></dl>
-<dl><dt><a name="socksocket-connect"><strong>connect</strong></a>(self, destpair)</dt><dd><tt><a href="#socksocket-connect">connect</a>(self,despair)<br>
+<dl><dt><a name="socksocket-connect"><strong>connect</strong></a>(self, destpair)</dt><dd><tt><a href="#socksocket-connect">connect</a>(self, despair)<br>
Connects to the specified destination through a proxy.<br>
destpar - A tuple of the IP/DNS address and the port number.<br>
(identical to socket's connect).<br>
@@ -469,8 +468,6 @@
<dl><dt><a name="socksocket-getproxysockname"><strong>getproxysockname</strong></a>(self)</dt><dd><tt><a href="#socksocket-getsockname">getsockname</a>() -> address info<br>
Returns the bound IP address and port number at the proxy.</tt></dd></dl>
-<dl><dt><a name="socksocket-sendall"><strong>sendall</strong></a>(self, bytes)</dt></dl>
-
<dl><dt><a name="socksocket-setproxy"><strong>setproxy</strong></a>(self, proxytype<font color="#909090">=None</font>, addr<font color="#909090">=None</font>, port<font color="#909090">=None</font>, rdns<font color="#909090">=True</font>, username<font color="#909090">=None</font>, password<font color="#909090">=None</font>)</dt><dd><tt><a href="#socksocket-setproxy">setproxy</a>(proxytype, addr[, port[, rdns[, username[, password]]]])<br>
Sets the proxy to be used.<br>
proxytype - The type of the proxy to be used. Three types<br>
@@ -551,6 +548,13 @@
Return a regular file object corresponding to the socket. The mode<br>
and bufsize arguments are as for the built-in open() function.</tt></dd></dl>
+<dl><dt><a name="socksocket-sendall"><strong>sendall</strong></a>(...)</dt><dd><tt><a href="#socksocket-sendall">sendall</a>(data[, flags])<br>
+ <br>
+Send a data string to the socket. For the optional flags<br>
+argument, see the Unix manual. This calls <a href="#socksocket-send">send</a>() repeatedly<br>
+until all data is sent. If an error occurs, it's impossible<br>
+to tell how much data has been sent.</tt></dd></dl>
+
<dl><dt><a name="socksocket-setblocking"><strong>setblocking</strong></a>(...)</dt><dd><tt><a href="#socksocket-setblocking">setblocking</a>(flag)<br>
<br>
Set the socket to blocking (flag is true) or non-blocking (false).<br>
@@ -607,10 +611,14 @@
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
-<td width="100%"><dl><dt><a name="-bytes"><strong>bytes</strong></a>(obj, enc<font color="#909090">=None</font>)</dt></dl>
- <dl><dt><a name="-setdefaultproxy"><strong>setdefaultproxy</strong></a>(proxytype<font color="#909090">=None</font>, addr<font color="#909090">=None</font>, port<font color="#909090">=None</font>, rdns<font color="#909090">=True</font>, username<font color="#909090">=None</font>, password<font color="#909090">=None</font>)</dt><dd><tt><a href="#-setdefaultproxy">setdefaultproxy</a>(proxytype, addr[, port[, rdns[, username[, password]]]])<br>
+<td width="100%"><dl><dt><a name="-setdefaultproxy"><strong>setdefaultproxy</strong></a>(proxytype<font color="#909090">=None</font>, addr<font color="#909090">=None</font>, port<font color="#909090">=None</font>, rdns<font color="#909090">=True</font>, username<font color="#909090">=None</font>, password<font color="#909090">=None</font>)</dt><dd><tt><a href="#-setdefaultproxy">setdefaultproxy</a>(proxytype, addr[, port[, rdns[, username[, password]]]])<br>
Sets a default proxy which all further <a href="#socksocket">socksocket</a> objects will use,<br>
unless explicitly changed.</tt></dd></dl>
+ <dl><dt><a name="-wrapmodule"><strong>wrapmodule</strong></a>(module)</dt><dd><tt><a href="#-wrapmodule">wrapmodule</a>(module)<br>
+Attempts to replace a module's socket library with a SOCKS socket. Must set<br>
+a default proxy using <a href="#-setdefaultproxy">setdefaultproxy</a>(...) first.<br>
+This will only work on modules that import socket directly into the namespace;<br>
+most of the Python Standard Library falls into this category.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">