aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party/collectd-ves-app/ves_app/normalizer.py
diff options
context:
space:
mode:
authorTomaszewski, PawelX <pawelx.tomaszewski@intel.com>2019-11-13 04:35:06 -0800
committerKamil Wiatrowski <kamilx.wiatrowski@intel.com>2019-12-12 09:08:47 +0100
commit96015a4a509dc7feb622f97325e8eb39896cc5e3 (patch)
tree1b3f8cfa9afdf98bfdf21ac14a76ec37be017a6f /3rd_party/collectd-ves-app/ves_app/normalizer.py
parentac61abf57582a8489ecd2d29d3211e154d3de217 (diff)
Python 2 to 3 migration fixes
Change-Id: I487632435ae575c2507e58ee5682aa03934391b8 Signed-off-by: Pawel Tomaszewski <pawelx.tomaszewski@intel.com> Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
Diffstat (limited to '3rd_party/collectd-ves-app/ves_app/normalizer.py')
-rw-r--r--3rd_party/collectd-ves-app/ves_app/normalizer.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/3rd_party/collectd-ves-app/ves_app/normalizer.py b/3rd_party/collectd-ves-app/ves_app/normalizer.py
index 0e92d1a5..95feead1 100644
--- a/3rd_party/collectd-ves-app/ves_app/normalizer.py
+++ b/3rd_party/collectd-ves-app/ves_app/normalizer.py
@@ -17,7 +17,7 @@
# Volodymyr Mytnyk <volodymyrx.mytnyk@intel.com>
#
-from . import yaml
+import yaml
import logging
import datetime
import time
@@ -28,12 +28,15 @@ import re
# import YAML loader
try:
- from .yaml import CLoader as Loader
+ from yaml import CLoader as Loader
except ImportError:
- from .yaml import Loader
+ from yaml import Loader
# import synchronized queue
-import queue
+try:
+ import queue
+except ImportError:
+ import Queue as queue
class Config(object):