[Python-checkins] CVS: python/dist/src/Doc/ref ref2.tex,1.33,1.34
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 11 Dec 2001 09:46:40 -0800
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv15868/ref
Modified Files:
ref2.tex
Log Message:
Fix whitespace in example of bad indentation: a comment indicated that one
line was not indented at all, so the example is no longer indented at all.
All of the errors being shown remain.
Typo: characteru --> character
Index: ref2.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref2.tex,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** ref2.tex 2001/12/04 20:38:44 1.33
--- ref2.tex 2001/12/11 17:46:38 1.34
***************
*** 196,206 ****
\begin{verbatim}
! def perm(l): # error: first line indented
! for i in range(len(l)): # error: not indented
! s = l[:i] + l[i+1:]
! p = perm(l[:i] + l[i+1:]) # error: unexpected indent
! for x in p:
! r.append(l[i:i+1] + x)
! return r # error: inconsistent dedent
\end{verbatim}
--- 196,206 ----
\begin{verbatim}
! def perm(l): # error: first line indented
! for i in range(len(l)): # error: not indented
! s = l[:i] + l[i+1:]
! p = perm(l[:i] + l[i+1:]) # error: unexpected indent
! for x in p:
! r.append(l[i:i+1] + x)
! return r # error: inconsistent dedent
\end{verbatim}
***************
*** 328,332 ****
{<any ASCII character except "\e" or newline or the quote>}
\production{longstringchar}
! {<any ASCII characteru except "\e">}
\production{escapeseq}
{"\e" <any ASCII character>}
--- 328,332 ----
{<any ASCII character except "\e" or newline or the quote>}
\production{longstringchar}
! {<any ASCII character except "\e">}
\production{escapeseq}
{"\e" <any ASCII character>}