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:
parent
ee75c5abc4
commit
319aa4b075
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user