1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

Don't use deprecated builtin map()

This commit is contained in:
Olof Johansson 2013-04-27 13:20:15 +02:00
parent 22d06ba0fe
commit c9b38e21f6
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Vimeo(Service):
if options.quality and selected_quality is None:
log.error("Can't find that quality. (Try one of: %s)",
", ".join(map(str, avail_quality)))
", ".join([str(elm) for elm in avail_quality]))
sys.exit(4)
elif options.quality is None and selected_quality is None:
selected_quality = avail_quality[0]

View File

@ -233,7 +233,7 @@ def select_quality(options, streams):
if not selected:
log.error("Can't find that quality. Try one of: %s (or try --flexible-quality)",
", ".join(map(str, available)))
", ".join([str(elm) for elm in available]))
sys.exit(4)
return streams[selected]