summaryrefslogtreecommitdiffstats
path: root/events/src/utils.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-10-06 09:20:24 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-10-10 14:08:52 +0000
commit324384ca48944662fecdffe72faa5d2c5872eb5f (patch)
tree76a2b3d0756fc00d49d9bb1c163d9ed2b4eeb646 /events/src/utils.py
parent3a962b17ad82a7a80da804550cfdf84ec4ec82fd (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> (cherry picked from commit b5f75e337c19d4fed85d4dcf15cf47f02fea5f6a)
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