mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +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
|
binary_type = str
|
||||||
|
|
||||||
# alias
|
# alias
|
||||||
import StringIO
|
import cStringIO
|
||||||
StringIO = StringIO.StringIO
|
StringIO = cStringIO.StringIO
|
||||||
cmp_fn = cmp
|
cmp_fn = cmp
|
||||||
|
Reference in New Issue
Block a user