summaryrefslogtreecommitdiffstats
path: root/support/scripts/graph-build-time
diff options
context:
space:
mode:
Diffstat (limited to 'support/scripts/graph-build-time')
-rwxr-xr-xsupport/scripts/graph-build-time6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/scripts/graph-build-time b/support/scripts/graph-build-time
index 45f94353f3..8ef065f127 100755
--- a/support/scripts/graph-build-time
+++ b/support/scripts/graph-build-time
@@ -84,7 +84,7 @@ class Package:
self.steps_duration[step] = self.steps_end[step] - self.steps_start[step]
def get_duration(self, step=None):
- if step == None:
+ if step is None:
duration = 0
for step in self.steps_duration.keys():
duration += self.steps_duration[step]
@@ -278,10 +278,10 @@ if args.alternate_colors:
else:
colors = default_colors
-if args.type == "histogram" or args.type == None:
+if args.type == "histogram" or args.type is None:
if args.order == "build" or args.order == "duration" or args.order == "name":
pkg_histogram(d, args.output, args.order)
- elif args.order == None:
+ elif args.order is None:
pkg_histogram(d, args.output, "name")
else:
sys.stderr.write("Unknown ordering: %s\n" % args.order)
OpenPOWER on IntegriCloud