diff options
author | Sebastien Martini <seb@dbzteam.org> | 2011-01-22 21:27:48 +0100 |
---|---|---|
committer | Sebastien Martini <seb@dbzteam.org> | 2011-01-22 21:27:48 +0100 |
commit | 2054c250bc18fb030685278c47d48b03743224d5 (patch) | |
tree | ce17908f6ec8970547588352ad5ebcf76de01b19 /python3/pyinotify.py | |
parent | f6f50b37a585065a2739f0548b9d0cae8baa14ae (diff) | |
download | pyinotify-2054c250bc18fb030685278c47d48b03743224d5.tar.gz |
Removed useless code spotted by pyflakes.
Diffstat (limited to 'python3/pyinotify.py')
-rwxr-xr-x | python3/pyinotify.py | 16 |
1 files changed, 0 insertions, 16 deletions
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.""" |