Skip to content

Commit

Permalink
Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
seb-m committed Mar 11, 2012
1 parent f5be682 commit 98c5f41
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions python2/pyinotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,21 +245,6 @@ def _sysctl(self, *args):
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."""
Expand Down

0 comments on commit 98c5f41

Please sign in to comment.