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_html_notes.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bin/reproducible_html_notes.py') 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-70-g09d2
\n" \ + tab*3 + "Identified issues\n" + tab*2 + "
' + issue + '