diff options
-rwxr-xr-x | python2/pyinotify.py | 1 | ||||
-rwxr-xr-x | python3/pyinotify.py | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py index b11bc96..e56be10 100755 --- a/python2/pyinotify.py +++ b/python2/pyinotify.py @@ -77,7 +77,6 @@ import atexit from collections import deque from datetime import datetime, timedelta import time -import fnmatch import re import ctypes import ctypes.util diff --git a/python3/pyinotify.py b/python3/pyinotify.py index 70e3442..f4b598f 100755 --- a/python3/pyinotify.py +++ b/python3/pyinotify.py @@ -77,7 +77,6 @@ import atexit from collections import deque from datetime import datetime, timedelta import time -import fnmatch import re import ctypes import ctypes.util @@ -130,21 +129,6 @@ def load_libc(): load_libc() -class PyinotifyLogger(logging.Logger): - """ - Pyinotify logger used for logging unicode strings. - """ - def makeRecord(self, name, level, fn, lno, msg, args, exc_info, func=None, - extra=None): - rv = UnicodeLogRecord(name, level, fn, lno, msg, args, exc_info, func) - if extra is not None: - for key in extra: - if (key in ["message", "asctime"]) or (key in rv.__dict__): - raise KeyError("Attempt to overwrite %r in LogRecord" % key) - rv.__dict__[key] = extra[key] - return rv - - # Logging def logger_init(): """Initialize logger instance.""" |