geo-rep: Fix problems in python2 -> python3 compat

1. Import configparser module correctly
2. Import thread module correctly

Updates: #411
Change-Id: I522453d23c256b694fa58d285f413b8c4dd6595c
Signed-off-by: Kotresh HR <khiremat@redhat.com>
This commit is contained in:
Kotresh HR 2018-06-11 02:52:16 -04:00
parent ee75c5abc4
commit 319aa4b075
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
#
try:
from configparser import ConfigParser, NoSectionError
from configparser import configparser as ConfigParser, NoSectionError
except ImportError:
from ConfigParser import ConfigParser, NoSectionError
import os

View File

@ -14,9 +14,9 @@ import time
import logging
from threading import Condition
try:
import _thread
import _thread as thread
except ImportError:
import thread as _thread
import thread
try:
from queue import Queue
except ImportError: