Commit 1035b6bf authored by Hanno Schlichting's avatar Hanno Schlichting

New-style classes are good and interfaces are inherited from base classes

parent 77525bb0
...@@ -23,7 +23,7 @@ from .interfaces import IProgressHandler ...@@ -23,7 +23,7 @@ from .interfaces import IProgressHandler
LOG = getLogger('ProgressHandler') LOG = getLogger('ProgressHandler')
class StdoutHandler: class StdoutHandler(object):
""" A simple progress handler """ """ A simple progress handler """
implements(IProgressHandler) implements(IProgressHandler)
...@@ -63,8 +63,6 @@ class StdoutHandler: ...@@ -63,8 +63,6 @@ class StdoutHandler:
class ZLogHandler(StdoutHandler): class ZLogHandler(StdoutHandler):
""" Use Zope logger""" """ Use Zope logger"""
implements(IProgressHandler)
def output(self, text): def output(self, text):
LOG.info(text) LOG.info(text)
...@@ -72,8 +70,6 @@ class ZLogHandler(StdoutHandler): ...@@ -72,8 +70,6 @@ class ZLogHandler(StdoutHandler):
class FilelogHandler(StdoutHandler): class FilelogHandler(StdoutHandler):
""" Use a custom file for logging """ """ Use a custom file for logging """
implements(IProgressHandler)
def __init__(self, filename, steps=100): def __init__(self, filename, steps=100):
StdoutHandler.__init__(self, steps) StdoutHandler.__init__(self, steps)
self.filename = filename self.filename = filename
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment