mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use six.Stringio instead of StringIO.StringIO
The StringIO class was moved to the io module. (In Python 2, io.StringIO is available, but is Unicode-only.) Reviewed-By: David Kupka <dkupka@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
026b1b5307
commit
65e3b9edc6
@@ -25,10 +25,10 @@ import re
|
||||
import collections
|
||||
import itertools
|
||||
import time
|
||||
import StringIO
|
||||
import dns
|
||||
|
||||
import dns
|
||||
from ldif import LDIFWriter
|
||||
from six import StringIO
|
||||
|
||||
from ipapython import ipautil
|
||||
from ipaplatform.paths import paths
|
||||
@@ -780,7 +780,7 @@ def install_clients(servers, clients):
|
||||
def _entries_to_ldif(entries):
|
||||
"""Format LDAP entries as LDIF"""
|
||||
lines = []
|
||||
io = StringIO.StringIO()
|
||||
io = StringIO()
|
||||
writer = LDIFWriter(io)
|
||||
for entry in entries:
|
||||
writer.unparse(str(entry.dn), dict(entry))
|
||||
|
||||
Reference in New Issue
Block a user