Merge pull request #1698 from avaris/1695

Fixes #1695: replace `map` with list comprehension for py3 compatibility
This commit is contained in:
Justin Mayer 2015-04-15 09:07:33 +01:00
commit f19ea17d0a

View file

@ -162,7 +162,7 @@ def ask(question, answer=str_compat, default=None, l=None):
def ask_timezone(question, default, tzurl):
"""Prompt for time zone and validate input"""
lower_tz = map(str.lower, pytz.all_timezones)
lower_tz = [tz.lower() for tz in pytz.all_timezones]
while True:
r = ask(question, str_compat, default)
r = r.strip().replace(' ', '_').lower()