summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2012-03-11 20:53:05 +0100
committerSebastien Martini <seb@dbzteam.org>2012-03-11 20:53:05 +0100
commit98c5f41a6e2e90827a63ff1b878596f4080481cc (patch)
treec40316ee30d694dcc39a2b3b40ddd25e34f5da4c
parentf5be68205a896cfcc3ccaf72aab29ac3e20d4d31 (diff)
downloadpyinotify-98c5f41a6e2e90827a63ff1b878596f4080481cc.tar.gz
Removed unused code.
-rwxr-xr-xpython2/pyinotify.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index 894a869..9dac7c7 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -245,21 +245,6 @@ class _CtypesLibcINotifyWrapper(INotifyWrapper):
return self._libc.sysctl(*args)
-class _PyinotifyLogger(logging.getLoggerClass()):
- """
- 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."""