git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
563c10e
)
python/compat: use cStringIO instead of StringIO in compat.py
author
Noel Power
<noel.power@suse.com>
Fri, 10 Aug 2018 18:54:46 +0000
(19:54 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 3 Sep 2018 01:22:21 +0000
(
03:22
+0200)
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>
python/samba/compat.py
patch
|
blob
|
history
diff --git
a/python/samba/compat.py
b/python/samba/compat.py
index aa1ac29136f7848be041a9ebaf03f6b3523378e9..e328cc54574fb40ea8b91a64e49096bbca9fa124 100644
(file)
--- 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
c
StringIO
+ StringIO =
c
StringIO.StringIO
cmp_fn = cmp