From bc61ee44a3f8a9bf0490605f62ec27fcd6a5b8d0 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Wed, 22 Aug 2018 02:05:59 -0400 Subject: glusterfind: Fix problems in python2 -> python3 compat 1. Import configparser module correctly 2. Fix issues with urllib usage Updates: #411 Change-Id: I060af29f1ebac3a5e2aeeee2720b7372d4c31697 Signed-off-by: Kotresh HR --- tools/glusterfind/src/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/glusterfind/src/conf.py') diff --git a/tools/glusterfind/src/conf.py b/tools/glusterfind/src/conf.py index fdab38badb1..81183d55444 100644 --- a/tools/glusterfind/src/conf.py +++ b/tools/glusterfind/src/conf.py @@ -10,9 +10,9 @@ import os try: - import configparser + import configparser as ConfigParser except ImportError: - import ConfigParser as configparser + import ConfigParser config = ConfigParser.ConfigParser() config.read(os.path.join(os.path.dirname(os.path.abspath(__file__)), -- cgit