mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
python/compat: use cStringIO instead of StringIO in compat.py
Using cStringIO for py2 seems to incur alot less problems and less changes to the py2/py3 code then using StringIO.StringIO Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
563c10ee63
commit
94c23ee046
@ -92,6 +92,6 @@ else:
|
||||
binary_type = str
|
||||
|
||||
# alias
|
||||
import StringIO
|
||||
StringIO = StringIO.StringIO
|
||||
import cStringIO
|
||||
StringIO = cStringIO.StringIO
|
||||
cmp_fn = cmp
|
||||
|
Reference in New Issue
Block a user