[server] fix generate_source_config regression on python2
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 26 Oct 2015 15:22:09 +0100
changeset 10793 8316fdad9987
parent 10791 22611236983d
child 10794 0b4d6beec132
[server] fix generate_source_config regression on python2 lgc outputs "str" objects on python2 and python3, so we can't just use io.StringIO (which expects unicode objects). Fixes: c36cda9074c5
server/serverconfig.py
--- a/server/serverconfig.py	Wed Oct 14 15:49:03 2015 +0200
+++ b/server/serverconfig.py	Mon Oct 26 15:22:09 2015 +0100
@@ -22,7 +22,8 @@
 
 import sys
 from os.path import join, exists
-from io import StringIO
+
+from six.moves import StringIO
 
 import logilab.common.configuration as lgconfig
 from logilab.common.decorators import cached