From c9b38e21f6b3b497816266e8e43edbf31edec183 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Sat, 27 Apr 2013 13:20:15 +0200 Subject: [PATCH] Don't use deprecated builtin map() --- lib/svtplay_dl/service/vimeo.py | 2 +- lib/svtplay_dl/utils/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/vimeo.py b/lib/svtplay_dl/service/vimeo.py index 10bf094..dce68bc 100644 --- a/lib/svtplay_dl/service/vimeo.py +++ b/lib/svtplay_dl/service/vimeo.py @@ -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] diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py index 85fe655..8225f3f 100644 --- a/lib/svtplay_dl/utils/__init__.py +++ b/lib/svtplay_dl/utils/__init__.py @@ -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]