summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind/src/conf.py
diff options
context:
space:
mode:
authorShwetha K Acharya <sacharya@redhat.com>2018-12-10 13:45:34 +0530
committerAmar Tumballi <amarts@redhat.com>2019-02-02 03:08:45 +0000
commit23e530a135fc419fba401448290f8b1809e23f53 (patch)
treeeb5d6e263ed151ae99f0c4c6ef82b6d8a094fc94 /tools/glusterfind/src/conf.py
parenta229ee1c8cdf8e0ac1abaeb60cabe6ab08f60546 (diff)
glusterfind: python2 to python3 compat
Made necessary modifications to ensure python3 compatibilty. fixes: bz#1658116 Change-Id: I5cf1d0447eaf3c44eb444245d1f67aadd60705c3 Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
Diffstat (limited to 'tools/glusterfind/src/conf.py')
-rw-r--r--tools/glusterfind/src/conf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/glusterfind/src/conf.py b/tools/glusterfind/src/conf.py
index ab766f85c0f..3849ba5dd1f 100644
--- a/tools/glusterfind/src/conf.py
+++ b/tools/glusterfind/src/conf.py
@@ -10,11 +10,11 @@
import os
try:
- from configparser import ConfigParser
+ from ConfigParser import ConfigParser
except ImportError:
- import ConfigParser
+ from configparser import ConfigParser
-config = ConfigParser.ConfigParser()
+config = ConfigParser()
config.read(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"tool.conf"))