mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fixed minor typo in interactive example (extra '.'s in '...' prompts)
This commit is contained in:
parent
dcdb4b4d78
commit
1793dd31de
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue