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/utils/crypto.py | 1 + 1 file changed, 1 insertion(+) (limited to 'django/utils') diff --git a/django/utils/crypto.py b/django/utils/crypto.py index f826c8a80c..9d6486c601 100644 --- a/django/utils/crypto.py +++ b/django/utils/crypto.py @@ -8,6 +8,7 @@ import hashlib import binascii import operator import time +from functools import reduce # Use the system PRNG if possible import random -- cgit v1.3