mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 23:43:31 +01:00
Update docstring
This commit is contained in:
parent
b8e1c5675e
commit
05f0072363
1 changed files with 2 additions and 1 deletions
|
|
@ -538,7 +538,8 @@ class Period(object):
|
|||
|
||||
def __init__(self, date, precision):
|
||||
"""Create a period with the given date (a `datetime` object) and
|
||||
precision (a string, one of "year", "month", or "day").
|
||||
precision (a string, one of "year", "month", "day", "hour", "minute", or
|
||||
"second").
|
||||
"""
|
||||
if precision not in Period.precisions:
|
||||
raise ValueError(u'Invalid precision {0}'.format(precision))
|
||||
|
|
|
|||
Loading…
Reference in a new issue