diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-05-20 00:24:21 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-05-20 00:25:46 +0200 |
| commit | 35e65855680be2c8a495ec926c7eaf992c79edc0 (patch) | |
| tree | b5fffd9107dbf6b16abaeb67e7f017bd5068dc9a /django/core/exceptions.py | |
| parent | 4b58e94f271790675782f617288d915169e99654 (diff) | |
Imported reduce from functools for forward compatibility.
In Python 3, reduce has to be imported from functools.
Diffstat (limited to 'django/core/exceptions.py')
| -rw-r--r-- | django/core/exceptions.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
