From ecd030410f585d23cd3e33e3073593229465de88 Mon Sep 17 00:00:00 2001 From: zhangyangyang Date: Thu, 6 Sep 2018 18:00:54 +0800 Subject: [PATCH] Python 3 compatibility: use configparser replace ConfigParser. Story: 2002909 Task: 24565 Change-Id: Iadd58a60ba960e20c79b06d573d4eb0719b2282a Signed-off: zhangyangyang --- tools/engtools/hostdata-collectors/scripts/live_stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/engtools/hostdata-collectors/scripts/live_stream.py b/tools/engtools/hostdata-collectors/scripts/live_stream.py index aed8f5520..43d3de066 100644 --- a/tools/engtools/hostdata-collectors/scripts/live_stream.py +++ b/tools/engtools/hostdata-collectors/scripts/live_stream.py @@ -13,7 +13,7 @@ import datetime import psutil import fcntl import logging -import ConfigParser +from six.moves import configparser import itertools import six from multiprocessing import Process, cpu_count @@ -1349,7 +1349,7 @@ if __name__ == "__main__": all_services = "" fast_postgres_connections = False fast_postgres = "" - config = ConfigParser.ConfigParser() + config = configparser.ConfigParser() node = os.popen("hostname").read().strip("\n")