Skip to content

Commit 1de57a4

Browse files
committed
fix_formatting
Signed-off-by: hwassman <[email protected]>
1 parent 9dd23e9 commit 1de57a4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/profiler.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ def __init__(self, path=None):
4141
def run(self, func, *args, **kwargs):
4242
"""Dump profile data into self.path."""
4343
with Profile() as profile:
44-
filename = f"profiling_{func.__name__}.prof"
45-
result = func(*args, **kwargs)
46-
(
47-
Stats(profile)
48-
.strip_dirs()
49-
.sort_stats(SortKey.CALLS)
50-
.dump_stats(os.path.join(self.path, filename))
51-
)
44+
filename = f"profiling_{func.__name__}.prof"
45+
result = func(*args, **kwargs)
46+
(
47+
Stats(profile)
48+
.strip_dirs()
49+
.sort_stats(SortKey.CALLS)
50+
.dump_stats(os.path.join(self.path, filename))
51+
)
5252
return result
5353

5454
def statfiles(self):
@@ -68,7 +68,7 @@ def stats(self, filename, sortby='cumulative'):
6868
return response
6969

7070
def GET(self, **params):
71-
""" Forward GET REST HTTP/s API incoming requests to Profiler
71+
""" Forward GET REST HTTP/s API incoming requests to Profiler
7272
available endpoints:
7373
/profiling
7474
"""

0 commit comments

Comments
 (0)