summaryrefslogtreecommitdiff
path: root/visitor.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2007-11-28 14:56:59 +0100
committerSylvain <syt@logilab.fr>2007-11-28 14:56:59 +0100
commita1985c17caa606440240d09fdb1a3a06e8dfcc44 (patch)
tree7fa014aed656ae35431b44b885d15aa242be790b /visitor.py
parentbb675d28e04a76ccc8c2e0cd49047074f2d807ab (diff)
downloadlogilab-common-a1985c17caa606440240d09fdb1a3a06e8dfcc44.tar.gz
inherit from object
Diffstat (limited to 'visitor.py')
-rw-r--r--visitor.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/visitor.py b/visitor.py
index df8d8cd..ca70b9f 100644
--- a/visitor.py
+++ b/visitor.py
@@ -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