summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-10-07 04:52:38 (GMT)
committerSteven Knight <knight@baldmt.com>2008-10-07 04:52:38 (GMT)
commit856870a4151e82c4511b4ca2e77240685d10c4af (patch)
tree081d8386031bb406d2a0c86a04d597b5c1c3143a /src/script
parentd91fcf97d58b71e4ec57b405be51dd1f923eff79 (diff)
downloadSCons-856870a4151e82c4511b4ca2e77240685d10c4af.zip
SCons-856870a4151e82c4511b4ca2e77240685d10c4af.tar.gz
SCons-856870a4151e82c4511b4ca2e77240685d10c4af.tar.bz2
Fix label placement in gnuplot graphs by the "scons-time.py func"
subcommand when a profile result is equal to (or near) 0.0.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons-time.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py
index d651ba9..4c74411 100644
--- a/src/script/scons-time.py
+++ b/src/script/scons-time.py
@@ -166,13 +166,13 @@ class Gnuplotter(Plotter):
result = []
for line in self.lines:
result.extend(line.get_x_values())
- return filter(None, result)
+ return filter(lambda r: not r is None, result)
def get_all_y_values(self):
result = []
for line in self.lines:
result.extend(line.get_y_values())
- return filter(None, result)
+ return filter(lambda r: not r is None, result)
def get_min_x(self):
try: