summaryrefslogtreecommitdiffstats
path: root/events/src/utils.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-10-06 09:20:24 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-08 16:36:31 +0000
commitb5f75e337c19d4fed85d4dcf15cf47f02fea5f6a (patch)
tree9c55fc712fb13b3f672e1dcf011d5b88675fa8b6 /events/src/utils.py
parentfb6e8d0d0ca21b16d331fa69da9b9dadf6c5c35d (diff)
events: python2 to python3 compat
1. Fix imports 2. Use universal_newlines flag in Popen 3. encode msg used in 'sendto' Updates: #411 Change-Id: Ieacdc2ba86953ff3a2e9d9b9a97157e8e0e36836 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'events/src/utils.py')
-rw-r--r--events/src/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/events/src/utils.py b/events/src/utils.py
index 0ec7051ec28..fcdcbd47acc 100644
--- a/events/src/utils.py
+++ b/events/src/utils.py
@@ -26,13 +26,13 @@ import hmac
from hashlib import sha256
from calendar import timegm
-from eventsapiconf import (LOG_FILE,
+from .eventsapiconf import (LOG_FILE,
WEBHOOKS_FILE,
DEFAULT_CONFIG_FILE,
CUSTOM_CONFIG_FILE,
UUID_FILE,
CERTS_DIR)
-import eventtypes
+from . import eventtypes
# Webhooks list