summaryrefslogtreecommitdiff
path: root/buildstream/_profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_profile.py')
-rw-r--r--buildstream/_profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_profile.py b/buildstream/_profile.py
index 7dd7fbb67..0bf4a3dcd 100644
--- a/buildstream/_profile.py
+++ b/buildstream/_profile.py
@@ -69,11 +69,11 @@ class Profile():
with open(filename, "a", encoding="utf-8") as f:
dt = datetime.datetime.fromtimestamp(self.start)
- time = dt.strftime('%Y-%m-%d %H:%M:%S')
+ time_ = dt.strftime('%Y-%m-%d %H:%M:%S')
heading = '================================================================\n'
heading += 'Profile for key: {}\n'.format(self.key)
- heading += 'Started at: {}\n'.format(time)
+ heading += 'Started at: {}\n'.format(time_)
if self.message:
heading += '\n {}'.format(self.message)
heading += '================================================================\n'