summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2011-08-17 20:00:23 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2011-08-17 20:00:23 +0200
commitd3abc094de5785700d6b8b553d1e6f13da674c91 (patch)
tree935e82137dd3afcec140ac7afa54b8b3ca66c9ae /numbench
parentSolved issue with module import. (diff)
downloadauto-numerical-bench-d3abc094de5785700d6b8b553d1e6f13da674c91.tar.gz
auto-numerical-bench-d3abc094de5785700d6b8b553d1e6f13da674c91.tar.bz2
auto-numerical-bench-d3abc094de5785700d6b8b553d1e6f13da674c91.zip
Solved problem with Print.
Diffstat (limited to 'numbench')
-rw-r--r--numbench/benchprint.py8
-rwxr-xr-xnumbench/main.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/numbench/benchprint.py b/numbench/benchprint.py
index e0e5051..beb6fe8 100644
--- a/numbench/benchprint.py
+++ b/numbench/benchprint.py
@@ -14,20 +14,20 @@ if needsinitialization:
self._maxlevel = maxlevel
self._logfile = logfile
- def __call__(self, arg='\n'):
- printstr = str(arg)
+ def __call__(self, arg='', end='\n'):
+ printstr = str(arg) + end
if self._level > 0:
printstr = (self._level-1)*" " + "-- " + printstr
# Print to logfile
bu.mkdir(dirname(self._logfile))
logfile = file(self._logfile, 'a')
- print >> logfile, printstr
+ print >> logfile, printstr,
logfile.close()
# Print to terminal
if self._level <= self._maxlevel:
- print printstr
+ print printstr,
def up(self, n=1):
self._level = max(self._level-n, 0)
diff --git a/numbench/main.py b/numbench/main.py
index 21822d7..6150611 100755
--- a/numbench/main.py
+++ b/numbench/main.py
@@ -175,7 +175,7 @@ for tname, ttest in cfg.tests.items():
if len(ttest['skip']) != 0:
Print(" - Skip implementations: " + ' '.join(ttest['skip']))
if len(ttest['changes']) != 0:
- Print(" - Dependency specifications:",)
+ Print(" - Dependency substitutions:", '')
for c_0, c_1 in ttest['changes'].items():
Print(c_0 + ':' + c_1, '')
Print()