mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixes #1695: replace with list comprehension for py3 compatibility
This commit is contained in:
parent
249a919c59
commit
2e84e30ad3
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue