summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-06-11 02:52:16 -0400
committerKotresh HR <khiremat@redhat.com>2018-06-11 02:59:44 -0400
commit319aa4b0754d1f3859b180f9a416be20143d4ec1 (patch)
treef1d69b80c262bbf7d47c0f71b94f5734078f8f2b /geo-replication/syncdaemon
parentee75c5abc41f43aa79b5e758e43f70a92672d3a2 (diff)
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>
Diffstat (limited to 'geo-replication/syncdaemon')
-rw-r--r--geo-replication/syncdaemon/gsyncdconfig.py2
-rw-r--r--geo-replication/syncdaemon/repce.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/geo-replication/syncdaemon/gsyncdconfig.py b/geo-replication/syncdaemon/gsyncdconfig.py
index 8403477dac3..b2517f031ca 100644
--- a/geo-replication/syncdaemon/gsyncdconfig.py
+++ b/geo-replication/syncdaemon/gsyncdconfig.py
@@ -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
diff --git a/geo-replication/syncdaemon/repce.py b/geo-replication/syncdaemon/repce.py
index f819a89bfee..9d5da666858 100644
--- a/geo-replication/syncdaemon/repce.py
+++ b/geo-replication/syncdaemon/repce.py
@@ -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: