From a05a70d8168a07c92b2a3ecbbb1958d85532efe3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 30 May 2015 12:03:28 +1200 Subject: Add coding style check, reformat. --- doc-src/dev/index.py | 8 ++++---- doc-src/features/index.py | 2 +- doc-src/index.py | 5 +++-- doc-src/tutorials/index.py | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) (limited to 'doc-src') diff --git a/doc-src/dev/index.py b/doc-src/dev/index.py index 0f2a6494..ddf100d0 100644 --- a/doc-src/dev/index.py +++ b/doc-src/dev/index.py @@ -1,8 +1,8 @@ from countershape import Page pages = [ - Page("testing.html", "Testing"), - Page("architecture.html", "Architecture"), - Page("sslkeylogfile.html", "TLS Master Secrets"), -# Page("addingviews.html", "Writing Content Views"), + Page("testing.html", "Testing"), + Page("architecture.html", "Architecture"), + Page("sslkeylogfile.html", "TLS Master Secrets"), + # Page("addingviews.html", "Writing Content Views"), ] diff --git a/doc-src/features/index.py b/doc-src/features/index.py index 693b4439..fdab1714 100644 --- a/doc-src/features/index.py +++ b/doc-src/features/index.py @@ -16,4 +16,4 @@ pages = [ Page("tcpproxy.html", "TCP Proxy"), Page("upstreamcerts.html", "Upstream Certs"), Page("upstreamproxy.html", "Upstream proxy mode"), -] \ No newline at end of file +] diff --git a/doc-src/index.py b/doc-src/index.py index 4fefc866..2ae9fafe 100644 --- a/doc-src/index.py +++ b/doc-src/index.py @@ -37,7 +37,7 @@ def mpath(p): def example(s): d = file(mpath(s)).read().rstrip() extemp = """
%s
(%s)
""" - return extemp%(countershape.template.Syntax("py")(d), s) + return extemp % (countershape.template.Syntax("py")(d), s) ns.example = example @@ -52,7 +52,8 @@ def nav(page, current, state): else: pre = "
  • " p = state.application.getPage(page) - return pre + '%s
  • '%(countershape.widgets.UrlTo(page), p.title) + return pre + \ + '%s' % (countershape.widgets.UrlTo(page), p.title) ns.nav = nav ns.navbar = countershape.template.File(None, "_nav.html") diff --git a/doc-src/tutorials/index.py b/doc-src/tutorials/index.py index 1cb04679..3bfe7c12 100644 --- a/doc-src/tutorials/index.py +++ b/doc-src/tutorials/index.py @@ -4,4 +4,4 @@ pages = [ Page("30second.html", "Client playback: a 30 second example"), Page("gamecenter.html", "Setting highscores on Apple's GameCenter"), Page("transparent-dhcp.html", "Transparently proxify virtual machines") -] \ No newline at end of file +] -- cgit v1.2.3