diff --git a/apachelog.py b/apachelog.py index bd88ac0..9b2f33e 100755 --- a/apachelog.py +++ b/apachelog.py @@ -8,7 +8,10 @@ from os import access, R_OK from threading import Thread from datetime import datetime -from Queue import Queue, Empty +try: + from queue import Queue, Empty +except ImportError: + from Queue import Queue, Empty from apache_log_parser import make_parser, LineDoesntMatchException # Dictionary of functions to be mapped to each key's value