Use 'predicate = bool' as the default predicate for ifilter[false].
diff --git a/Doc/lib/libitertools.tex b/Doc/lib/libitertools.tex
index 30d80c1..aec55cb 100644
--- a/Doc/lib/libitertools.tex
+++ b/Doc/lib/libitertools.tex
@@ -140,8 +140,7 @@
\begin{verbatim}
def ifilter(predicate, iterable):
if predicate is None:
- def predicate(x):
- return x
+ predicate = bool
for x in iterable:
if predicate(x):
yield x
@@ -157,8 +156,7 @@
\begin{verbatim}
def ifilterfalse(predicate, iterable):
if predicate is None:
- def predicate(x):
- return x
+ predicate = bool
for x in iterable:
if not predicate(x):
yield x