From c79020d8ee2d0089ed2b4fc301039e84911a1688 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Fri, 24 Jan 2020 10:52:47 +0100 Subject: [PATCH] Convert unneccesary f-strings to regular literals --- codetiming/_timer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codetiming/_timer.py b/codetiming/_timer.py index de03368..14645a8 100644 --- a/codetiming/_timer.py +++ b/codetiming/_timer.py @@ -35,14 +35,14 @@ def __post_init__(self) -> None: def start(self) -> None: """Start a new timer""" if self._start_time is not None: - raise TimerError(f"Timer is running. Use .stop() to stop it") + raise TimerError("Timer is running. Use .stop() to stop it") self._start_time = time.perf_counter() def stop(self) -> float: """Stop the timer, and report the elapsed time""" if self._start_time is None: - raise TimerError(f"Timer is not running. Use .start() to start it") + raise TimerError("Timer is not running. Use .start() to start it") # Calculate elapsed time self.last = time.perf_counter() - self._start_time