diff markup/path.py @ 23:00835401c8cc

Separate match and eval filters from the include and user-supplied filters.
author cmlenz
date Tue, 20 Jun 2006 17:31:32 +0000
parents 821114ec4f69
children 547e36f7ec94
line wrap: on
line diff
--- a/markup/path.py
+++ b/markup/path.py
@@ -176,8 +176,6 @@
         stack = [0] # stack of cursors into the location path
 
         def _test(kind, data, pos):
-            #print '\nTracker %r test [%s] %r' % (self, kind, data)
-
             if not stack:
                 return False
 
@@ -191,7 +189,6 @@
             matched = False
             closure, node_test, predicates = self.steps[stack[-1]]
 
-            #print '  Testing against %r' % node_test
             matched = node_test(kind, data, pos)
             if matched and predicates:
                 for predicate in predicates:
@@ -201,10 +198,8 @@
 
             if matched:
                 if stack[-1] == len(self.steps) - 1:
-                    #print '  Last step %r... returned %r' % (node_test, matched)
                     return matched
 
-                #print '  Matched intermediate step %r... proceed to next step %r' % (node_test, self.steps[stack[-1] + 1])
                 stack[-1] += 1
 
             elif kind is Stream.START and not closure:
Copyright (C) 2012-2017 Edgewall Software