summaryrefslogtreecommitdiff
path: root/src/buildstream/_profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_profile.py')
-rw-r--r--src/buildstream/_profile.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/buildstream/_profile.py b/src/buildstream/_profile.py
index b8a9537a8..854c26e10 100644
--- a/src/buildstream/_profile.py
+++ b/src/buildstream/_profile.py
@@ -62,9 +62,7 @@ class _Profile:
filename_template = os.path.join(
os.getcwd(),
"profile-{}-{}".format(
- datetime.datetime.fromtimestamp(self.start_time).strftime(
- "%Y%m%dT%H%M%S"
- ),
+ datetime.datetime.fromtimestamp(self.start_time).strftime("%Y%m%dT%H%M%S"),
self.key.replace("/", "-").replace(".", "-"),
),
)
@@ -100,9 +98,7 @@ class _Profile:
)
with open(self.log_filename, "a") as fp:
- stats = pstats.Stats(
- self.profiler, *self._additional_pstats_files, stream=fp
- )
+ stats = pstats.Stats(self.profiler, *self._additional_pstats_files, stream=fp)
# Create the log file
fp.write(heading)