[Zope-CVS] CVS: Products/ZCTextIndex - QueryParser.py:1.1.2.4

Guido van Rossum guido@python.org
Tue, 30 Apr 2002 17:54:03 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv20336

Modified Files:
      Tag: TextIndexDS9-branch
	QueryParser.py 
Log Message:
Add a __repr__ method to the ParseTreeNode class.


=== Products/ZCTextIndex/QueryParser.py 1.1.2.3 => 1.1.2.4 ===
         return self._value
 
+    def __repr__(self):
+        return "%s(%r)" % (self.__class__.__name__, self.getValue())
+
 class NotNode(ParseTreeNode):
 
     _nodeType = "NOT"