mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Import 'reduce' from functools
The reduce function is no longer a built-in in Python 3. Importing it from functools works on both py2 and py3. Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
6a741b51da
commit
262faec70a
@ -47,6 +47,7 @@ from ipapython.ipautil import ipa_generate_password, CheckedIPAddress
|
||||
from ipapython.dnsutil import DNSName
|
||||
from ipapython.ssh import SSHPublicKey
|
||||
from ipapython.dn import DN
|
||||
from functools import reduce
|
||||
|
||||
__doc__ = _("""
|
||||
Hosts/Machines
|
||||
|
Loading…
Reference in New Issue
Block a user