Gentoo Archives: gentoo-commits

From: Andrea Arteaga <andyspiros@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/auto-numerical-bench:master commit in: numbench/
Date: Tue, 28 Feb 2012 19:20:25
Message-Id: 1330456741.4525e08adeca3c974d52a87edacfa3b2e6ab67c3.spiros@gentoo
1 commit: 4525e08adeca3c974d52a87edacfa3b2e6ab67c3
2 Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
3 AuthorDate: Tue Feb 28 19:19:01 2012 +0000
4 Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
5 CommitDate: Tue Feb 28 19:19:01 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/auto-numerical-bench.git;a=commit;h=4525e08a
7
8 Bugs solved.
9
10 ---
11 numbench/benchconfig.py | 2 +-
12 numbench/htmlreport.py | 6 +++---
13 2 files changed, 4 insertions(+), 4 deletions(-)
14
15 diff --git a/numbench/benchconfig.py b/numbench/benchconfig.py
16 index f4bed38..a3b40cf 100644
17 --- a/numbench/benchconfig.py
18 +++ b/numbench/benchconfig.py
19 @@ -49,7 +49,7 @@ if not locals().has_key('initialized'):
20 passargs = sys.argv[3:]
21 for i,a in enumerate(passargs):
22 if a in ('-d', '--directory'):
23 - basedir = passargs[i+1]
24 + basedir = pjoin(curdir, passargs[i+1])
25 passargs = passargs[:i] + passargs[i+2:]
26 break
27
28
29 diff --git a/numbench/htmlreport.py b/numbench/htmlreport.py
30 index 39cf38f..a0d61b4 100644
31 --- a/numbench/htmlreport.py
32 +++ b/numbench/htmlreport.py
33 @@ -22,7 +22,7 @@ from xml.sax.saxutils import escape as xmlescape
34 import benchconfig as cfg
35
36 class HTMLreport:
37 - def __init__(self, fname, title="Benchmarks report", \
38 + def __init__(self, fname, title='Benchmarks report', \
39 inputfile=pjoin(cfg.reportdir, basename(cfg.inputfile))):
40 self.fname = fname
41 self.content = """
42 @@ -60,7 +60,7 @@ h1, h2, .plot, .descr, .info {
43 <body>
44 <h1>
45 """
46 - self.content += title + "</h1>"
47 + self.content += title + '</h1>'
48 date = time.strftime('%Y-%m-%d, %I:%M %p')
49 self.content += '<p class="info">Generated on ' + date + '</p>'
50
51 @@ -106,7 +106,7 @@ h1, h2, .plot, .descr, .info {
52 self.content += '</div><hr />'
53
54 def close(self):
55 - self.content += "</body></html>"
56 + self.content += '</body></html>'
57 f = file(self.fname, 'w')
58 f.write(self.content)
59 f.close()