Permalink
Browse files

Add a parameter to control the number of retries.

  • Loading branch information...
1 parent 8e63343 commit 4860c4f39a90daf1d1c642184b3bf8161756a670 @jcgregorio jcgregorio committed Apr 17, 2012
View
@@ -1,10 +1,10 @@
tests:
-cd python2 && python2.4 httplib2test.py
-cd python2 && python2.5 httplib2test.py
- #cd python2 && python2.6 httplib2test.py
- #cd python2 && python2.6 httplib2test_appengine.py
- cd python2 && ~/bin/python2.7 httplib2test.py
- cd python2 && ~/bin/python2.7 httplib2test_appengine.py
+ cd python2 && python2.6 httplib2test.py
+ cd python2 && python2.6 httplib2test_appengine.py
+ cd python2 && python2.7 httplib2test.py
+ cd python2 && python2.7 httplib2test_appengine.py
cd python3 && ~/bin/python3.2 httplib2test.py
VERSION = $(shell python setup.py --version)
@@ -117,6 +117,12 @@ The :mod:`httplib2` module defines the following variables:
The amount of debugging information to print. The default is 0.
+
+.. data:: RETRIES
+
+ A request will be tried 'RETRIES' times if it fails at the socket/connection level.
+ The default is 2.
+
The :mod:`httplib2` module may raise the following Exceptions. Note that there
is an option that turns exceptions into normal responses with an HTTP status
code indicating an error occured. See
View
@@ -1,6 +1,12 @@
-/**
- * Sphinx stylesheet -- basic theme
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+/*
+ * basic.css
+ * ~~~~~~~~~
+ *
+ * Sphinx stylesheet -- basic theme.
+ *
+ * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :license: BSD, see LICENSE for details.
+ *
*/
/* -- main layout ----------------------------------------------------------- */
@@ -73,6 +79,14 @@ div.sphinxsidebar input {
font-size: 1em;
}
+div.sphinxsidebar input[type="text"] {
+ width: 170px;
+}
+
+div.sphinxsidebar input[type="submit"] {
+ width: 30px;
+}
+
img {
border: 0;
}
@@ -127,6 +141,10 @@ span.linkdescr {
/* -- general index --------------------------------------------------------- */
+table.indextable {
+ width: 100%;
+}
+
table.indextable td {
text-align: left;
vertical-align: top;
@@ -152,6 +170,20 @@ img.toggler {
cursor: pointer;
}
+div.modindex-jumpbox {
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ margin: 1em 0 1em 0;
+ padding: 0.4em;
+}
+
+div.genindex-jumpbox {
+ border-top: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+ margin: 1em 0 1em 0;
+ padding: 0.4em;
+}
+
/* -- general body styles --------------------------------------------------- */
a.headerlink {
@@ -189,6 +221,36 @@ p.rubric {
font-weight: bold;
}
+img.align-left, .figure.align-left, object.align-left {
+ clear: left;
+ float: left;
+ margin-right: 1em;
+}
+
+img.align-right, .figure.align-right, object.align-right {
+ clear: right;
+ float: right;
+ margin-left: 1em;
+}
+
+img.align-center, .figure.align-center, object.align-center {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.align-left {
+ text-align: left;
+}
+
+.align-center {
+ text-align: center;
+}
+
+.align-right {
+ text-align: right;
+}
+
/* -- sidebars -------------------------------------------------------------- */
div.sidebar {
@@ -252,7 +314,7 @@ table.docutils {
}
table.docutils td, table.docutils th {
- padding: 1px 8px 1px 0;
+ padding: 1px 8px 1px 5px;
border-top: 0;
border-left: 0;
border-right: 0;
@@ -272,8 +334,37 @@ th {
padding-right: 5px;
}
+table.citation {
+ border-left: solid 1px gray;
+ margin-left: 1px;
+}
+
+table.citation td {
+ border-bottom: none;
+}
+
/* -- other body styles ----------------------------------------------------- */
+ol.arabic {
+ list-style: decimal;
+}
+
+ol.loweralpha {
+ list-style: lower-alpha;
+}
+
+ol.upperalpha {
+ list-style: upper-alpha;
+}
+
+ol.lowerroman {
+ list-style: lower-roman;
+}
+
+ol.upperroman {
+ list-style: upper-roman;
+}
+
dl {
margin-bottom: 15px;
}
@@ -292,7 +383,7 @@ dd {
margin-left: 30px;
}
-dt:target, .highlight {
+dt:target, .highlighted {
background-color: #fbe54e;
}
@@ -329,7 +420,7 @@ dl.glossary dt {
}
.footnote:target {
- background-color: #ffa
+ background-color: #ffa;
}
.line-block {
@@ -344,10 +435,28 @@ dl.glossary dt {
margin-left: 1.5em;
}
+.guilabel, .menuselection {
+ font-family: sans-serif;
+}
+
+.accelerator {
+ text-decoration: underline;
+}
+
+.classifier {
+ font-style: oblique;
+}
+
+abbr, acronym {
+ border-bottom: dotted 1px;
+ cursor: help;
+}
+
/* -- code displays --------------------------------------------------------- */
pre {
overflow: auto;
+ overflow-y: hidden; /* fixes display issues on Chrome browsers */
}
td.linenos pre {
@@ -384,6 +493,20 @@ h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
background-color: transparent;
}
+.viewcode-link {
+ float: right;
+}
+
+.viewcode-back {
+ float: right;
+ font-family: sans-serif;
+}
+
+div.viewcode-block:target {
+ margin: -1px -10px;
+ padding: 0 10px;
+}
+
/* -- math display ---------------------------------------------------------- */
img.math {
@@ -414,4 +537,4 @@ span.eqno {
#top-link {
display: none;
}
-}
+}
@@ -1,6 +1,12 @@
-/**
- * Sphinx stylesheet -- default theme
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+/*
+ * default.css_t
+ * ~~~~~~~~~~~~~
+ *
+ * Sphinx stylesheet -- default theme.
+ *
+ * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ * :license: BSD, see LICENSE for details.
+ *
*/
@import url("basic.css");
@@ -107,21 +113,27 @@ div.sphinxsidebar input {
font-size: 1em;
}
-/* -- body styles ----------------------------------------------------------- */
+
+
+/* -- hyperlink styles ------------------------------------------------------ */
a {
color: #355f7c;
text-decoration: none;
}
+a:visited {
+ color: #355f7c;
+ text-decoration: none;
+}
+
a:hover {
text-decoration: underline;
}
-div.body p, div.body dd, div.body li {
- text-align: justify;
- line-height: 130%;
-}
+
+
+/* -- body styles ----------------------------------------------------------- */
div.body h1,
div.body h2,
@@ -166,6 +178,18 @@ div.admonition p.admonition-title + p {
display: inline;
}
+div.admonition p {
+ margin-bottom: 5px;
+}
+
+div.admonition pre {
+ margin-bottom: 5px;
+}
+
+div.admonition ul, div.admonition ol {
+ margin-bottom: 5px;
+}
+
div.note {
background-color: #eee;
border: 1px solid #ccc;
@@ -209,10 +233,24 @@ tt {
font-size: 0.95em;
}
+th {
+ background-color: #ede;
+}
+
.warning tt {
background: #efc2c2;
}
.note tt {
background: #d6d6d6;
+}
+
+.viewcode-back {
+ font-family: sans-serif;
+}
+
+div.viewcode-block:target {
+ background-color: #f4debf;
+ border-top: 1px solid #ac9;
+ border-bottom: 1px solid #ac9;
}
Oops, something went wrong.

0 comments on commit 4860c4f

Please sign in to comment.