the function should be a class method instead of instance method because it doesn't perform an action on the instance
This commit is contained in:
parent
c0d478f14c
commit
f7ba4bc74d
|
@ -167,7 +167,8 @@ class croniter(object):
|
|||
|
||||
return result
|
||||
|
||||
def _timedelta_to_seconds(self, td):
|
||||
@classmethod
|
||||
def _timedelta_to_seconds(cls, td):
|
||||
"""
|
||||
Converts a 'datetime.timedelta' object `td` into seconds contained in
|
||||
the duration
|
||||
|
|
Loading…
Reference in New Issue