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
LOG = getLogger('ProgressHandler')
class StdoutHandler:
class StdoutHandler(object):
""" A simple progress handler """
implements(IProgressHandler)
......@@ -63,8 +63,6 @@ class StdoutHandler:
class ZLogHandler(StdoutHandler):
""" Use Zope logger"""
implements(IProgressHandler)
def output(self, text):
LOG.info(text)
......@@ -72,8 +70,6 @@ class ZLogHandler(StdoutHandler):
class FilelogHandler(StdoutHandler):
""" Use a custom file for logging """
implements(IProgressHandler)
def __init__(self, filename, steps=100):
StdoutHandler.__init__(self, steps)
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