🐛 (pypo) CentOS 7/Python 2.7.5 fix

This commit is contained in:
Lucas Bickel 2019-08-18 18:04:06 +02:00
parent e232469551
commit 8bdc63dffb
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ from api_clients import api_client
from configobj import ConfigObj
from datetime import datetime
from optparse import OptionParser
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