From b5f75e337c19d4fed85d4dcf15cf47f02fea5f6a Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Sat, 6 Oct 2018 09:20:24 +0530 Subject: 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 --- events/src/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'events/src/utils.py') diff --git a/events/src/utils.py b/events/src/utils.py index 0ec7051ec2..fcdcbd47ac 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 -- cgit