Skip to content

Commit daea34e

Browse files
committed
Fix the length class, add class doc.
1 parent 46ee995 commit daea34e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sc2reader/utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import sys
1111
import mpyq
1212
from itertools import groupby
13+
from datetime import timedelta
1314

1415
from sc2reader import exceptions
1516
from sc2reader.constants import COLOR_CODES
@@ -613,11 +614,11 @@ def get_replay_files(path, exclude=[], depth=-1, followlinks=False, **extras):
613614

614615
return files
615616

616-
from datetime import timedelta
617617
class Length(timedelta):
618-
619-
#: The total number of seconds represented
620-
#seconds = int()
618+
"""
619+
Extends the builtin timedelta class. See python docs for more info on
620+
what capabilities this gives you.
621+
"""
621622

622623
@property
623624
def hours(self):

0 commit comments

Comments
 (0)