From: Noel Power Date: Fri, 10 Aug 2018 18:54:46 +0000 (+0100) Subject: python/compat: use cStringIO instead of StringIO in compat.py X-Git-Tag: tdb-1.3.17~1936 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94c23ee046ca9cfa36ab5aedfeb56faf8eee459c;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/compat.py b/python/samba/compat.py index aa1ac29136f..e328cc54574 100644 --- a/python/samba/compat.py +++ b/python/samba/compat.py @@ -92,6 +92,6 @@ else: binary_type = str # alias - import StringIO - StringIO = StringIO.StringIO + import cStringIO + StringIO = cStringIO.StringIO cmp_fn = cmp