Skip to content

Commit 8107662

Browse files
authored
Convert unneccesary f-strings to regular literals (#21)
1 parent 2c0b306 commit 8107662

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codetiming/_timer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def __post_init__(self) -> None:
3535
def start(self) -> None:
3636
"""Start a new timer"""
3737
if self._start_time is not None:
38-
raise TimerError(f"Timer is running. Use .stop() to stop it")
38+
raise TimerError("Timer is running. Use .stop() to stop it")
3939

4040
self._start_time = time.perf_counter()
4141

4242
def stop(self) -> float:
4343
"""Stop the timer, and report the elapsed time"""
4444
if self._start_time is None:
45-
raise TimerError(f"Timer is not running. Use .start() to start it")
45+
raise TimerError("Timer is not running. Use .start() to start it")
4646

4747
# Calculate elapsed time
4848
self.last = time.perf_counter() - self._start_time

0 commit comments

Comments
 (0)