Fixed minor typo in interactive example (extra '.'s in '...' prompts)

This commit is contained in:
Edward Loper 2004-09-28 03:12:01 +00:00
parent dcdb4b4d78
commit 1793dd31de

View file

@ -598,8 +598,8 @@ ignored.
\begin{verbatim}
>>> def dashrepl(matchobj):
.... if matchobj.group(0) == '-': return ' '
.... else: return '-'
... if matchobj.group(0) == '-': return ' '
... else: return '-'
>>> re.sub('-{1,2}', dashrepl, 'pro----gram-files')
'pro--gram files'
\end{verbatim}