diff options
author | Kotresh HR <khiremat@redhat.com> | 2018-10-06 09:20:24 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-08 16:36:31 +0000 |
commit | b5f75e337c19d4fed85d4dcf15cf47f02fea5f6a (patch) | |
tree | 9c55fc712fb13b3f672e1dcf011d5b88675fa8b6 /events/src/utils.py | |
parent | fb6e8d0d0ca21b16d331fa69da9b9dadf6c5c35d (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.py | 4 |
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 |