mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-14 02:03:17 +00:00
[FIX] Import reduce from functools for > Python 3.2
This commit is contained in:
parent
df5e59be34
commit
d8b3a1d7cf
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,11 @@ try:
|
|||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from functools import reduce
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
logger = logging.getLogger('wagtail.core')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue