From 798b714bef2b86f0fe97ddbcc3ebbe68c599ae3f Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Thu, 12 Jul 2007 23:28:09 -0700
Subject: [PATCH] webish.DirnodeWalkerMixin: comment out the code that
 demonstrates what we would do if we could just use generators, since we don't
 use it.

---
 src/allmydata/webish.py | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py
index 943c30b8..2da53fd8 100644
--- a/src/allmydata/webish.py
+++ b/src/allmydata/webish.py
@@ -322,18 +322,18 @@ class DirnodeWalkerMixin:
     fired.
     """
 
-    def _walk_if_we_could_use_generators(self, rootnode, rootpath=()):
-        # this is what we'd be doing if we didn't have the Deferreds and thus
-        # could use generators
-        yield rootpath, rootnode
-        for childname, childnode in rootnode.list().items():
-            childpath = rootpath + (childname,)
-            if IFileNode.providedBy(childnode):
-                yield childpath, childnode
-            elif IDirectoryNode.providedBy(childnode):
-                for res in self._walk_if_we_could_use_generators(childnode,
-                                                                 childpath):
-                    yield res
+##    def _walk_if_we_could_use_generators(self, rootnode, rootpath=()):
+##        # this is what we'd be doing if we didn't have the Deferreds and
+##        # thus could use generators
+##        yield rootpath, rootnode
+##        for childname, childnode in rootnode.list().items():
+##            childpath = rootpath + (childname,)
+##            if IFileNode.providedBy(childnode):
+##                yield childpath, childnode
+##            elif IDirectoryNode.providedBy(childnode):
+##                for res in self._walk_if_we_could_use_generators(childnode,
+##                                                                 childpath):
+##                    yield res
 
     def walk(self, rootnode, visitor, rootpath=()):
         d = rootnode.list()
-- 
2.45.2