Skip to content

Commit

Permalink
Support python3
Browse files Browse the repository at this point in the history
This updates the imports of Queue to let thus run on python3 and thus
modern versions of collectd.

Signed-off-by: Phil Dibowitz <[email protected]>
  • Loading branch information
jaymzh committed Sep 7, 2021
1 parent 26f8145 commit af8ab06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apachelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af8ab06

Please sign in to comment.