Commit 995a0a8a authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type.Utils: returns an imutable copy of pytz.common_timezones

This also fixes the problem that in recent pytz common_timezones is a LazyList that does not work in restricted python
parent 67b6efc1
......@@ -1387,8 +1387,8 @@ def getCommonTimeZoneList():
try:
from pytz import common_timezones
except ImportError:
return []
return common_timezones
return ()
return tuple(common_timezones)
#####################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment