diff options
author | Sylvain <syt@logilab.fr> | 2007-11-28 14:56:59 +0100 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2007-11-28 14:56:59 +0100 |
commit | a1985c17caa606440240d09fdb1a3a06e8dfcc44 (patch) | |
tree | 7fa014aed656ae35431b44b885d15aa242be790b /visitor.py | |
parent | bb675d28e04a76ccc8c2e0cd49047074f2d807ab (diff) | |
download | logilab-common-a1985c17caa606440240d09fdb1a3a06e8dfcc44.tar.gz |
inherit from object
Diffstat (limited to 'visitor.py')
-rw-r--r-- | visitor.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -16,14 +16,12 @@ a generic visitor abstract implementation """ -__revision__ = "$Id: visitor.py,v 1.14 2006-02-18 03:17:16 ludal Exp $" - def no_filter(_): return 1 # Iterators ################################################################### -class FilteredIterator: +class FilteredIterator(object): def __init__(self, node, list_func, filter_func=None): self._next = [(node, 0)] @@ -39,7 +37,7 @@ class FilteredIterator: # Base Visitor ################################################################ -class Visitor: +class Visitor(object): def __init__(self, iterator_class, filter_func=None): self._iter_class = iterator_class |