From ad68a3bed482cc7b3f40c68cb74f90a64978e33b Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 8 Jan 2015 17:01:14 +0100 Subject: reproducible: fix TypeError with wheezy's python --- bin/reproducible_common.py | 4 ++-- bin/reproducible_html_notes.py | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index dd8b19f9..61584460 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -146,14 +146,14 @@ html_head_page = Template((tab*2).join("""
  • stats
  • package sets stats
  • -""".splitlines(keepends=True))) +""".splitlines(True))) html_foot_page = Template((tab*2).join("""

    A package name displayed with a bold font is an indication that this package has a note. Visited packages are linked in green, those which have not been visited are linked in blue. -

    """.splitlines(keepends=True))) +

    """.splitlines(True))) url2html = re.compile(r'((mailto\:|((ht|f)tps?)\://|file\:///){1}\S+)') diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 99505ad7..b6b6f103 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -30,7 +30,7 @@ note_html = Template((tab*2).join("""

    -""".splitlines(keepends=True))) +""".splitlines(True))) note_issues_html = Template((tab*3).join(""" @@ -39,7 +39,7 @@ note_issues_html = Template((tab*3).join(""" $issues -""".splitlines(keepends=True))) +""".splitlines(True))) note_bugs_html = Template((tab*4).join(""" @@ -48,7 +48,7 @@ note_bugs_html = Template((tab*4).join(""" $bugs -""".splitlines(keepends=True))) +""".splitlines(True))) note_comments_html = Template((tab*3).join(""" @@ -57,7 +57,7 @@ note_comments_html = Template((tab*3).join(""" $comments -""".splitlines(keepends=True))) +""".splitlines(True))) note_issue_html_url = Template((tab*6).join(""" @@ -67,7 +67,7 @@ note_issue_html_url = Template((tab*6).join(""" $url -""".splitlines(keepends=True))) +""".splitlines(True))) note_issue_html_desc = Template((tab*6).join(""" @@ -76,7 +76,7 @@ note_issue_html_desc = Template((tab*6).join(""" $description -""".splitlines(keepends=True))) +""".splitlines(True))) note_issue_html = Template((tab*5).join((""" @@ -89,7 +89,7 @@ note_issue_html = Template((tab*5).join((""" $issue_info
    -""" % ISSUES_URI).splitlines(keepends=True))) +""" % ISSUES_URI).splitlines(True))) issue_html_url = Template((tab*4).join(""" @@ -99,7 +99,7 @@ issue_html_url = Template((tab*4).join(""" $url -""".splitlines(keepends=True))) +""".splitlines(True))) issue_html = Template((tab*3).join(""" @@ -133,7 +133,7 @@ $affected_pkgs

    Notes are stored in notes.git.

    -
    """.splitlines(keepends=True))) +""".splitlines(True))) def load_notes(): @@ -287,7 +287,7 @@ def iterate_over_issues(issues): def index_issues(issues): templ = "\n\n" + tab + "\n" + tab*2 + "\n" + tab + "\n" - html = (tab*2).join(templ.splitlines(keepends=True)) + html = (tab*2).join(templ.splitlines(True)) for issue in sorted(issues): html += tab*3 + '\n' -- cgit v1.2.3-54-g00ecf
    \n" \ + tab*3 + "Identified issues\n" + tab*2 + "
    ' + issue + '