From ea7e692dfb2057ef27fd755f236356ccf0df9872 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Sat, 21 Dec 2024 20:51:09 +0530 Subject: Reduce redundancy --- src/srtfilter/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/srtfilter/parse.py b/src/srtfilter/parse.py index c5a0e24..cbfb5ea 100644 --- a/src/srtfilter/parse.py +++ b/src/srtfilter/parse.py @@ -70,7 +70,7 @@ class Timecode: self.millisecond = int(match["millisecond"]) def __repr__(self): - return f"Timecode('{self.hour:02}:{self.minute:02}:{self.second:02},{self.millisecond:03}')" + return f"Timecode('{str(self)}')" def __str__(self): return f"{self.hour:02}:{self.minute:02}:{self.second:02},{self.millisecond:03}" -- cgit v1.2.3-57-g22cb