diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-04-19 02:53:12 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-04-19 02:53:12 +0300 |
commit | 72b8502992d3ee282e46231a953852c6a78fb000 (patch) | |
tree | 92fb56fc176e51ee50cc706c3d3ac27738ff2151 /Lib/pydoc.py | |
parent | f476405503c0ea80541df26cda7a4fa6af263659 (diff) | |
download | cpython-git-72b8502992d3ee282e46231a953852c6a78fb000.tar.gz |
#11182: remove the unused and undocumented pydoc.Scanner class. Patch by Martin Morrison.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 4d681b0efa..7505ccd297 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1984,30 +1984,6 @@ for modules whose name or summary contain the string "spam". help = Helper() -class Scanner: - """A generic tree iterator.""" - def __init__(self, roots, children, descendp): - self.roots = roots[:] - self.state = [] - self.children = children - self.descendp = descendp - - def next(self): - if not self.state: - if not self.roots: - return None - root = self.roots.pop(0) - self.state = [(root, self.children(root))] - node, children = self.state[-1] - if not children: - self.state.pop() - return self.next() - child = children.pop(0) - if self.descendp(child): - self.state.append((child, self.children(child))) - return child - - class ModuleScanner: """An interruptible scanner that searches module synopses.""" |