Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Fix lint, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Feb 18, 2015
1 parent 5ddb71b commit ac075bd
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 42 deletions.
24 changes: 12 additions & 12 deletions bench/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
parser.add_argument('--gfm', dest='gfm', action='store_true')
gfm = parser.parse_args().gfm

#pylint: disable=C0330

class Reporter(unitbench.Reporter):
""" Custom reporter """

Expand All @@ -21,20 +19,22 @@ def write_results(self, value, results):
self.stream.write("{0}|{1}|{2}|{3}\n".format(value, "user (ns)", "sys (ns)", "real (ns)"))
self.stream.write(":--|--:|--:|--:\n")
for r in results:
if (hasattr(r, "user_mean") and
hasattr(r, "system_mean") and hasattr(r, "wall_mean")):
self.stream.write("{0}|{1:,}|{2:,}|{3:,}\n".format(r.name,
long(r.user_mean * 10**9),
long(r.system_mean * 10**9),
if hasattr(r, "user_mean") and \
hasattr(r, "system_mean") and \
hasattr(r, "wall_mean"):
self.stream.write("{0}|{1:,}|{2:,}|{3:,}\n".format(r.name, \
long(r.user_mean * 10**9), \
long(r.system_mean * 10**9), \
long(r.wall_mean * 10**9)))
else:
self.stream.write("{0:<20}{1:>15}{2:>15}{3:>15}\n".format(value, "user (ns)", "sys (ns)", "real (ns)"))
self.stream.write("=" * 65 + "\n")
for r in results:
if (hasattr(r, "user_mean") and
hasattr(r, "system_mean") and hasattr(r, "wall_mean")):
self.stream.write("{0:<20} {1:>14,} {2:>14,} {3:>14,}\n".format(r.name,
long(r.user_mean * 10**9),
long(r.system_mean * 10**9),
if hasattr(r, "user_mean") and \
hasattr(r, "system_mean") and \
hasattr(r, "wall_mean"):
self.stream.write("{0:<20} {1:>14,} {2:>14,} {3:>14,}\n".format(r.name, \
long(r.user_mean * 10**9), \
long(r.system_mean * 10**9), \
long(r.wall_mean * 10**9)))
self.stream.write("\n")
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 373b6dd8128b1577157b9824396c469f
config: 122caf18f03e09f74785f4a0e261c5fe
tags: 645f666f9bcd5a90fca523b33c5a78b7
12 changes: 6 additions & 6 deletions docs/_build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Index &mdash; python-jwt 0.1.0 documentation</title>
<title>Index &mdash; python-jwt 0.3.4 documentation</title>

<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.1.0',
VERSION: '0.3.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="python-jwt 0.1.0 documentation" href="index.html" />
<link rel="top" title="python-jwt 0.3.4 documentation" href="index.html" />
</head>
<body>
<div class="related">
Expand All @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="index.html">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>

Expand Down Expand Up @@ -131,11 +131,11 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="index.html">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2013, David Halls.
&copy; Copyright 2015, David Halls.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
</div>
</body>
Expand Down
12 changes: 6 additions & 6 deletions docs/_build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>jwt module &mdash; python-jwt 0.1.0 documentation</title>
<title>jwt module &mdash; python-jwt 0.3.4 documentation</title>

<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.1.0',
VERSION: '0.3.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="python-jwt 0.1.0 documentation" href="#" />
<link rel="top" title="python-jwt 0.3.4 documentation" href="#" />
</head>
<body>
<div class="related">
Expand All @@ -35,7 +35,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="#">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="#">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>

Expand Down Expand Up @@ -216,11 +216,11 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="#">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="#">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2013, David Halls.
&copy; Copyright 2015, David Halls.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/objects.inv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sphinx inventory version 2
# Project: python-jwt
# Version: 0.1
# Version: 0.3
# The remainder of this file is compressed using zlib.
xڍ�M
�0F��b�n#u��(z��&���G����W�
Expand Down
12 changes: 6 additions & 6 deletions docs/_build/html/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Python Module Index &mdash; python-jwt 0.1.0 documentation</title>
<title>Python Module Index &mdash; python-jwt 0.3.4 documentation</title>

<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.1.0',
VERSION: '0.3.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -23,7 +23,7 @@
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="python-jwt 0.1.0 documentation" href="index.html" />
<link rel="top" title="python-jwt 0.3.4 documentation" href="index.html" />


<script type="text/javascript">
Expand All @@ -42,7 +42,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="index.html">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>

Expand Down Expand Up @@ -101,11 +101,11 @@ <h3>Navigation</h3>
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="index.html">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2013, David Halls.
&copy; Copyright 2015, David Halls.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
</div>
</body>
Expand Down
12 changes: 6 additions & 6 deletions docs/_build/html/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Search &mdash; python-jwt 0.1.0 documentation</title>
<title>Search &mdash; python-jwt 0.3.4 documentation</title>

<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.1.0',
VERSION: '0.3.4',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
Expand All @@ -24,7 +24,7 @@
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/searchtools.js"></script>
<link rel="top" title="python-jwt 0.1.0 documentation" href="index.html" />
<link rel="top" title="python-jwt 0.3.4 documentation" href="index.html" />
<script type="text/javascript">
jQuery(function() { Search.loadIndex("searchindex.js"); });
</script>
Expand All @@ -43,7 +43,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="index.html">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>

Expand Down Expand Up @@ -94,11 +94,11 @@ <h3>Navigation</h3>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">python-jwt 0.1.0 documentation</a> &raquo;</li>
<li><a href="index.html">python-jwt 0.3.4 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2013, David Halls.
&copy; Copyright 2015, David Halls.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@

# General information about the project.
project = u'python-jwt'
copyright = u'2013, David Halls'
copyright = u'2015, David Halls'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.1'
version = '0.3'
# The full version, including alpha/beta/rc tags.
release = '0.1.0'
release = '0.3.4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit ac075bd

Please sign in to comment.