From 35e65855680be2c8a495ec926c7eaf992c79edc0 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 20 May 2012 00:24:21 +0200 Subject: Imported reduce from functools for forward compatibility. In Python 3, reduce has to be imported from functools. --- django/core/exceptions.py | 1 + 1 file changed, 1 insertion(+) (limited to 'django/core') diff --git a/django/core/exceptions.py b/django/core/exceptions.py index 201a854a4b..e3d1dc9c7e 100644 --- a/django/core/exceptions.py +++ b/django/core/exceptions.py @@ -1,6 +1,7 @@ """ Global Django exception and warning classes. """ +from functools import reduce class DjangoRuntimeWarning(RuntimeWarning): pass -- cgit v1.3