summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBo Wang <bo.wang@easystack.cn>2016-03-10 14:39:57 +0800
committerBo Wang <bo.wang@easystack.cn>2016-03-10 18:01:37 +0800
commit618a8924afcf029c251a4fe754547c229f393acf (patch)
tree2cf9103d79979ea3ebc5d299914c758ec55492b0 /tools
parent6c184587648defb015c7dda7416b53721d71a9c7 (diff)
downloadpython-heatclient-618a8924afcf029c251a4fe754547c229f393acf.tar.gz
Replace ConfigParser with six.moves.configparser
ConfigParser is available in python2 but not in python3. ref:http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html Change-Id: I537a13a26aa3ab936ff23af1cf37a1a18baccd8e
Diffstat (limited to 'tools')
-rw-r--r--tools/install_venv.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/install_venv.py b/tools/install_venv.py
index 1dab63e..795c2eb 100644
--- a/tools/install_venv.py
+++ b/tools/install_venv.py
@@ -18,10 +18,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-import ConfigParser
import os
import sys
+from six.moves import configparser
+
import install_venv_common as install_venv
@@ -57,7 +58,7 @@ def main(argv):
pip_requires = os.path.join(root, 'requirements.txt')
test_requires = os.path.join(root, 'test-requirements.txt')
py_version = "python%s.%s" % (sys.version_info[0], sys.version_info[1])
- setup_cfg = ConfigParser.ConfigParser()
+ setup_cfg = configparser.ConfigParser()
setup_cfg.read('setup.cfg')
project = setup_cfg.get('metadata', 'name')