From 8bdc63dffb77adb0f31ec2c992f0094caa2dd2d9 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Sun, 18 Aug 2019 18:04:06 +0200 Subject: [PATCH] :bug: (pypo) CentOS 7/Python 2.7.5 fix --- python_apps/pypo/pypo/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python_apps/pypo/pypo/__main__.py b/python_apps/pypo/pypo/__main__.py index 7b8f8cf24..a51baffe3 100644 --- a/python_apps/pypo/pypo/__main__.py +++ b/python_apps/pypo/pypo/__main__.py @@ -16,7 +16,10 @@ from api_clients import api_client from configobj import ConfigObj from datetime import datetime from optparse import OptionParser -from queue import Queue +try: + from queue import Queue +except ImportError: # Python 2.7.5 (CentOS 7) + from Queue import Queue from threading import Lock from .listenerstat import ListenerStat