diff options
author | Kotresh HR <khiremat@redhat.com> | 2018-08-22 02:05:59 -0400 |
---|---|---|
committer | Aravinda VK <avishwan@redhat.com> | 2018-08-23 05:29:31 +0000 |
commit | bc61ee44a3f8a9bf0490605f62ec27fcd6a5b8d0 (patch) | |
tree | 06ddf9411bb89fcf0da98e9b10856b7fc5f4307e /tools/glusterfind/src/conf.py | |
parent | 2ccade56483a5e511b8f8089c7f3b27080484b76 (diff) |
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 <khiremat@redhat.com>
Diffstat (limited to 'tools/glusterfind/src/conf.py')
-rw-r--r-- | tools/glusterfind/src/conf.py | 4 |
1 files changed, 2 insertions, 2 deletions
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__)), |