public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrea Arteaga" <andyspiros@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/auto-numerical-bench:master commit in: numbench/
Date: Tue, 28 Feb 2012 19:20:15 +0000 (UTC)	[thread overview]
Message-ID: <1330456741.4525e08adeca3c974d52a87edacfa3b2e6ab67c3.spiros@gentoo> (raw)

commit:     4525e08adeca3c974d52a87edacfa3b2e6ab67c3
Author:     Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Tue Feb 28 19:19:01 2012 +0000
Commit:     Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Tue Feb 28 19:19:01 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/auto-numerical-bench.git;a=commit;h=4525e08a

Bugs solved.

---
 numbench/benchconfig.py |    2 +-
 numbench/htmlreport.py  |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/numbench/benchconfig.py b/numbench/benchconfig.py
index f4bed38..a3b40cf 100644
--- a/numbench/benchconfig.py
+++ b/numbench/benchconfig.py
@@ -49,7 +49,7 @@ if not locals().has_key('initialized'):
     passargs = sys.argv[3:]
     for i,a in enumerate(passargs):
         if a in ('-d', '--directory'):
-            basedir = passargs[i+1]
+            basedir = pjoin(curdir, passargs[i+1])
             passargs = passargs[:i] + passargs[i+2:]
             break
 

diff --git a/numbench/htmlreport.py b/numbench/htmlreport.py
index 39cf38f..a0d61b4 100644
--- a/numbench/htmlreport.py
+++ b/numbench/htmlreport.py
@@ -22,7 +22,7 @@ from xml.sax.saxutils import escape as xmlescape
 import benchconfig as cfg
 
 class HTMLreport:
-    def __init__(self, fname, title="Benchmarks report", \
+    def __init__(self, fname, title='Benchmarks report', \
                   inputfile=pjoin(cfg.reportdir, basename(cfg.inputfile))):
         self.fname = fname
         self.content = """
@@ -60,7 +60,7 @@ h1, h2, .plot, .descr, .info {
 <body>
 <h1>
 """
-        self.content += title + "</h1>"
+        self.content += title + '</h1>'
         date = time.strftime('%Y-%m-%d, %I:%M %p')
         self.content += '<p class="info">Generated on ' + date + '</p>'
 
@@ -106,7 +106,7 @@ h1, h2, .plot, .descr, .info {
         self.content += '</div><hr />'
         
     def close(self):
-        self.content += "</body></html>"
+        self.content += '</body></html>'
         f = file(self.fname, 'w')
         f.write(self.content)
         f.close()



             reply	other threads:[~2012-02-28 19:20 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28 19:20 Andrea Arteaga [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-09-27 11:19 [gentoo-commits] proj/auto-numerical-bench:master commit in: numbench/ Andrea Arteaga
2012-09-17  8:08 Andrea Arteaga
2012-09-17  8:08 Andrea Arteaga
2012-09-17  8:08 Andrea Arteaga
2012-09-02 11:41 Andrea Arteaga
2012-08-07 22:58 Andrea Arteaga
2012-08-04 20:24 Andrea Arteaga
2012-04-09 19:25 Andrea Arteaga
2012-02-27 15:05 Andrea Arteaga
2011-12-27  0:13 Andrea Arteaga
2011-08-22 18:02 Andrea Arteaga
2011-08-19 23:19 Andrea Arteaga
2011-08-19 23:11 Andrea Arteaga
2011-08-18 19:47 Andrea Arteaga
2011-08-17 18:00 Andrea Arteaga
2011-08-17 16:21 Andrea Arteaga
2011-08-17 15:00 Andrea Arteaga
2011-08-17 14:38 Andrea Arteaga
2011-08-17 14:38 Andrea Arteaga
2011-08-17  0:00 Andrea Arteaga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330456741.4525e08adeca3c974d52a87edacfa3b2e6ab67c3.spiros@gentoo \
    --to=andyspiros@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox