Use True in a few more places.
Use isinstance(somestring, basestring) instead of type() as per PEP 8
diff --git a/Doc/lib/libshlex.tex b/Doc/lib/libshlex.tex
index a79e954..9ebe16b 100644
--- a/Doc/lib/libshlex.tex
+++ b/Doc/lib/libshlex.tex
@@ -177,7 +177,7 @@
 \end{memberdesc}
 
 \begin{memberdesc}{whitespace_split}
-If true, tokens will only be split in whitespaces. This is useful, for
+If \code{True}, tokens will only be split in whitespaces. This is useful, for
 example, for parsing command lines with \class{shlex}, getting tokens
 in a similar way to shell arguments.
 \versionadded{2.3}