m3u: Avoid mutable default value
This commit is contained in:
parent
a61cdf4823
commit
3366780eed
@ -110,7 +110,9 @@ def dump_items(items, fp):
|
|||||||
print(item.uri, file=fp)
|
print(item.uri, file=fp)
|
||||||
|
|
||||||
|
|
||||||
def playlist(path, items=[], mtime=None):
|
def playlist(path, items=None, mtime=None):
|
||||||
|
if items is None:
|
||||||
|
items = []
|
||||||
return models.Playlist(
|
return models.Playlist(
|
||||||
uri=path_to_uri(path),
|
uri=path_to_uri(path),
|
||||||
name=name_from_path(path),
|
name=name_from_path(path),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user