Skip to content

Commit

Permalink
refactor(client): remove extra blank & stop deleteing summary in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
zhen.chen committed Sep 26, 2021
1 parent fd12f73 commit 0365037
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tensorbay/client/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _calculate_average_time(self) -> None:

@staticmethod
def _format_string(path: str = "Path", item: Optional[Dict[str, float]] = None) -> str:
content = [f"| {path:<63}"]
content = [f"|{path:<63}"]
if item is None:
content.append(_TITLE)
else:
Expand Down Expand Up @@ -170,7 +170,6 @@ def start(self, multiprocess: bool = False) -> None:
def stop(self) -> None:
"""Stop statistical record."""
Client.do = self.do_function # type: ignore[assignment]
delattr(self, "_summary")
if hasattr(self, "_manager"):
self._manager.shutdown()
delattr(self, "_manager")
Expand Down

0 comments on commit 0365037

Please sign in to comment.