summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2011-01-22 21:27:48 +0100
committerSebastien Martini <seb@dbzteam.org>2011-01-22 21:27:48 +0100
commit2054c250bc18fb030685278c47d48b03743224d5 (patch)
treece17908f6ec8970547588352ad5ebcf76de01b19
parentf6f50b37a585065a2739f0548b9d0cae8baa14ae (diff)
downloadpyinotify-2054c250bc18fb030685278c47d48b03743224d5.tar.gz
Removed useless code spotted by pyflakes.
-rwxr-xr-xpython2/pyinotify.py1
-rwxr-xr-xpython3/pyinotify.py16
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."""