summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2011-06-08 11:51:55 +0200
committerSebastien Martini <seb@dbzteam.org>2011-06-08 11:51:55 +0200
commit2c7e8f8959d2f8528e0d90847df3605b50985cc8 (patch)
tree62018b73d64cc7e7a8a8ad90a7bf70b614ed4603
parent73f8a2e4fd6ebf7e0bf8e7b1511dddb7e95d2e38 (diff)
downloadpyinotify-2c7e8f8959d2f8528e0d90847df3605b50985cc8.tar.gz
Properly subclass logging.Logger (contributed by Charles Cazabon
charlesc@fatdrop.co.uk).
-rwxr-xr-xpython2/pyinotify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index 3e5fcd1..f4e3ae4 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -244,7 +244,7 @@ class _CtypesLibcINotifyWrapper(INotifyWrapper):
return self._libc.sysctl(*args)
-class _PyinotifyLogger(logging.Logger):
+class _PyinotifyLogger(logging.getLoggerClass()):
"""
Pyinotify logger used for logging unicode strings.
"""