Skip to content

Commit 308bee1

Browse files
committed
feat: add __str__ method
1 parent 2880ba1 commit 308bee1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/file_rotate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ class FileRotate(Enum):
77
DAILY = 2
88
WEEKLY = 3
99
MONTHLY = 4
10+
11+
def __str__(self):
12+
return "%s" % self._name_

0 commit comments

Comments
 (0)