summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-08-10 19:54:46 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-09-03 03:22:21 +0200
commit94c23ee046ca9cfa36ab5aedfeb56faf8eee459c (patch)
treed56ea7027a9af2ce1b5777b3e3996778a1cd39f5 /python
parent563c10ee63c401345bed707b9f14b41d5d2799f7 (diff)
downloadsamba-94c23ee046ca9cfa36ab5aedfeb56faf8eee459c.tar.gz
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>
Diffstat (limited to 'python')
-rw-r--r--python/samba/compat.py4
1 files changed, 2 insertions, 2 deletions
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