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:
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
Global Django exception and warning classes.
|
||||
"""
|
||||
from functools import reduce
|
||||
|
||||
class DjangoRuntimeWarning(RuntimeWarning):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user