diff options
| author | William Deegan <bill@baddogconsulting.com> | 2017-02-28 20:07:51 (GMT) |
|---|---|---|
| committer | William Deegan <bill@baddogconsulting.com> | 2017-02-28 20:07:51 (GMT) |
| commit | 9dc001124dc72907556139a3b1f61148d1e539cf (patch) | |
| tree | e96c0e36e7f30ab0fe5884111f313e587327f94c /src/script | |
| parent | 8814bdd192c273ad9ee87fba6cf9be360335b6d5 (diff) | |
| download | SCons-9dc001124dc72907556139a3b1f61148d1e539cf.zip SCons-9dc001124dc72907556139a3b1f61148d1e539cf.tar.gz SCons-9dc001124dc72907556139a3b1f61148d1e539cf.tar.bz2 | |
fix float formatting and change writting output from binary to non binary file for py2/3
Diffstat (limited to 'src/script')
| -rw-r--r-- | src/script/scons-time.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py index edb9dad..9faf045 100644 --- a/src/script/scons-time.py +++ b/src/script/scons-time.py @@ -102,7 +102,7 @@ class Line(object): def print_label(self, inx, x, y): if self.label: - print('set label %s "%s" at %s,%s right' % (inx, self.label, x, y)) + print('set label %s "%s" at %0.1f,%0.1f right' % (inx, self.label, x, y)) def plot_string(self): if self.title: @@ -459,7 +459,9 @@ class SConsTimer(object): output = os.popen(command).read() if self.verbose: sys.stdout.write(output) - open(log, 'wb').write(output) + # TODO: Figure out + # Not sure we need to write binary here + open(log, 'w').write(output) # |
