Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1b304d

Browse files
committed
Fix small typos and markup consistency nits.
1 parent c442212 commit e1b304d

2 files changed

Lines changed: 16 additions & 15 deletions

File tree

Doc/lib/libcodecs.tex

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,40 +65,41 @@ \section{\module{codecs} ---
6565
To simplify working with encoded files or stream, the module
6666
also defines these utility functions:
6767

68-
\begin{funcdesc}{open}{filename, mode\optional{, encoding=None\optional{, errors='strict'\optional{, buffering=1}}}}
68+
\begin{funcdesc}{open}{filename, mode\optional{, encoding\optional{,
69+
errors\optional{, buffering}}}}
6970
Open an encoded file using the given \var{mode} and return
7071
a wrapped version providing transparent encoding/decoding.
7172

7273
\strong{Note:} The wrapped version will only accept the object format
73-
defined by the codecs, i.e. Unicode objects for most builtin
74-
codecs. Output is also codec dependent and will usually by Unicode as
74+
defined by the codecs, i.e.\ Unicode objects for most built-in
75+
codecs. Output is also codec-dependent and will usually be Unicode as
7576
well.
7677

7778
\var{encoding} specifies the encoding which is to be used for the
7879
the file.
7980

8081
\var{errors} may be given to define the error handling. It defaults
81-
to 'strict' which causes a \exception{ValueError} to be raised in case
82-
an encoding error occurs.
82+
to \code{'strict'} which causes a \exception{ValueError} to be raised
83+
in case an encoding error occurs.
8384

8485
\var{buffering} has the same meaning as for the built-in
8586
\function{open()} function. It defaults to line buffered.
8687
\end{funcdesc}
8788

88-
\begin{funcdesc}{EncodedFile}{file, input\optional{, output=None\optional{, errors='strict'}}}
89-
89+
\begin{funcdesc}{EncodedFile}{file, input\optional{,
90+
output\optional{, errors}}}
9091
Return a wrapped version of file which provides transparent
9192
encoding translation.
9293

9394
Strings written to the wrapped file are interpreted according to the
9495
given \var{input} encoding and then written to the original file as
95-
string using the \var{output} encoding. The intermediate encoding will
96+
strings using the \var{output} encoding. The intermediate encoding will
9697
usually be Unicode but depends on the specified codecs.
9798

98-
If \var{output} is not given, it defaults to input.
99+
If \var{output} is not given, it defaults to \var{input}.
99100

100101
\var{errors} may be given to define the error handling. It defaults to
101-
'strict' which causes \exception{ValueError} to be raised in case
102+
\code{'strict'}, which causes \exception{ValueError} to be raised in case
102103
an encoding error occurs.
103104
\end{funcdesc}
104105

Doc/lib/libcurses.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ \section{\module{curses} ---
2121
characters, regardless of your locale
2222
settings.}
2323
\seemodule{curses.textbox}{Editable text widget for curses supporting
24-
Emacs-like bindings.}
24+
Emacs-like bindings.}
2525
\seetext{Tutorial material on using curses with Python is available
2626
on the Python Web site as Andrew Kuchling's
2727
\citetitle[http://www.python.org/doc/howto/curses/curses.html]{Curses
@@ -349,10 +349,10 @@ \subsection{Functions \label{curses-functions}}
349349
Leave newline mode. Disable translation of return into newline on
350350
input, and disable low-level translation of newline into
351351
newline/return on output (but this does not change the behavior of
352-
addch('\n') which always does the equivalent of return and line feed
353-
on the virtual screen). With translation off, curses can sometimes speed
354-
up vertical motion a little; also, it will be able to detect the
355-
return key on input
352+
\code{addch('\e n')}, which always does the equivalent of return and
353+
line feed on the virtual screen). With translation off, curses can
354+
sometimes speed up vertical motion a little; also, it will be able to
355+
detect the return key on input.
356356
\end{funcdesc}
357357

358358
\begin{funcdesc}{noqiflush}{}

0 commit comments

Comments
 (0)