1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Imported reduce from functools for forward compatibility.

In Python 3, reduce has to be imported from functools.
This commit is contained in:
Claude Paroz
2012-05-20 00:24:21 +02:00
parent 4b58e94f27
commit 35e6585568
3 changed files with 3 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
"""
Global Django exception and warning classes.
"""
from functools import reduce
class DjangoRuntimeWarning(RuntimeWarning):
pass