From 46e8196fcf4aa7b22218acba5068714cbd79948f Mon Sep 17 00:00:00 2001 From: Lu lei Date: Mon, 29 Aug 2016 10:28:28 +0800 Subject: [PATCH] Use six.StringIO In links: http://pythonhosted.org/six/, we know 'cStringIO' is a module of python 2.x, but in python3.x module 'io' has the same function as 'cStringIO' in python2.x. So here we use six.stringIO instead. TrivialFix. Change-Id: I8022b92b186e239cd76a36dab7766301bf96d2c4 --- ansible/action_plugins/merge_configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/action_plugins/merge_configs.py b/ansible/action_plugins/merge_configs.py index 556f6233fa..266bc353ec 100644 --- a/ansible/action_plugins/merge_configs.py +++ b/ansible/action_plugins/merge_configs.py @@ -15,9 +15,9 @@ # limitations under the License. from ConfigParser import ConfigParser -from cStringIO import StringIO import inspect import os +from six import StringIO from ansible.plugins.action import ActionBase