@@ -27,8 +27,8 @@ \subsection{Module Contents}
2727
2828\begin {funcdesc }{split}{s\optional {, posix=\code {True}\optional {,
2929 spaces=\code {True}}}}
30- Split the string \var {s} using shell-like syntax. If \code {posix} is
31- \code {True}, operate in posix mode. If \code {spaces} is \code {True}, it
30+ Split the string \var {s} using shell-like syntax. If \var {posix} is
31+ \code {True}, operate in \POSIX {} mode. If \var {spaces} is \code {True}, it
3232will only split words in whitespaces (setting the
3333\member {whitespace_split} member of the \class {shlex} instance).
3434\versionadded {2.3}
@@ -48,11 +48,11 @@ \subsection{Module Contents}
4848string, which sets the initial value of the \member {infile} member. If
4949the \var {instream} argument is omitted or equal to \code {sys.stdin},
5050this second argument defaults to `` stdin'' . The \var {posix} argument
51- was introduced in Python 2.3, and defines the operational mode. When
51+ was introduced in Python 2.3, and defines the operational mode. When
5252\var {posix} is not true (default), the \class {shlex} instance will
53- operate in compatibility mode. When operating in posix mode,
54- \class {shlex} will try to be as close as possible to the posix shell
55- parsing rules. See~\ref {shlex-objects }.
53+ operate in compatibility mode. When operating in \POSIX {} mode,
54+ \class {shlex} will try to be as close as possible to the \POSIX {} shell
55+ parsing rules. See~\ref {shlex-objects }.
5656\end {classdesc }
5757
5858\subsection {shlex Objects \label {shlex-objects } }
@@ -63,8 +63,8 @@ \subsection{shlex Objects \label{shlex-objects}}
6363Return a token. If tokens have been stacked using
6464\method {push_token()}, pop a token off the stack. Otherwise, read one
6565from the input stream. If reading encounters an immediate
66- end-of-file, \member {self.eof} is returned (the empty string (\code {"" })
67- in non-posix mode, and \code {None} in posix mode).
66+ end-of-file, \member {self.eof} is returned (the empty string (\code {'' })
67+ in non-\POSIX {} mode, and \code {None} in \POSIX {} mode).
6868\end {methoddesc }
6969
7070\begin {methoddesc }{push_token}{str}
@@ -158,7 +158,7 @@ \subsection{shlex Objects \label{shlex-objects}}
158158
159159\begin {memberdesc }{escape}
160160Characters that will be considered as escape. This will be only used
161- in posix mode, and includes just \character {\textbackslash } by default.
161+ in \POSIX {} mode, and includes just \character {\textbackslash } by default.
162162\versionadded {2.3}
163163\end {memberdesc }
164164
@@ -171,8 +171,8 @@ \subsection{shlex Objects \label{shlex-objects}}
171171
172172\begin {memberdesc }{escapedquotes}
173173Characters in \member {quotes} that will interpret escape characters
174- defined in \member {escape}. This is only used in posix mode, and includes
175- just \character {"} by default.
174+ defined in \member {escape}. This is only used in \POSIX {} mode, and
175+ includes just \character {"} by default.
176176\versionadded {2.3}
177177\end {memberdesc }
178178
@@ -223,15 +223,15 @@ \subsection{shlex Objects \label{shlex-objects}}
223223
224224\begin {memberdesc }{eof}
225225Token used to determine end of file. This will be set to the empty
226- string (\code {"" }), in non-posix mode, and to \code {None} in posix
227- mode.
226+ string (\code {'' }), in non-\POSIX {} mode, and to \code {None} in
227+ \POSIX {} mode.
228228\versionadded {2.3}
229229\end {memberdesc }
230230
231231\subsection {Parsing Rules\label {shlex-parsing-rules } }
232232
233- When operating in non-posix mode, \class {shlex} with try to obey to the
234- following rules.
233+ When operating in non-\POSIX {} mode, \class {shlex} will try to obey to
234+ the following rules.
235235
236236\begin {itemize }
237237\item Quote characters are not recognized within words
@@ -246,11 +246,11 @@ \subsection{Parsing Rules\label{shlex-parsing-rules}}
246246 declared to be a word character, whitespace, or a quote will be
247247 returned as a single-character token. If it is \code {True},
248248 \class {shlex} will only split words in whitespaces;
249- \item EOF is signaled with an empty string (\code {"" });
249+ \item EOF is signaled with an empty string (\code {'' });
250250\item It's not possible to parse empty strings, even if quoted.
251251\end {itemize }
252252
253- When operating in posix mode, \class {shlex} will try to obey to the
253+ When operating in \POSIX {} mode, \class {shlex} will try to obey to the
254254following parsing rules.
255255
256256\begin {itemize }
@@ -270,6 +270,6 @@ \subsection{Parsing Rules\label{shlex-parsing-rules}}
270270 or the escape character itself. Otherwise the escape character
271271 will be considered a normal character.
272272\item EOF is signaled with a \code {None} value;
273- \item Quoted empty strings (\code {"" }) are allowed;
273+ \item Quoted empty strings (\code {'' }) are allowed;
274274\end {itemize }
275275
0 commit comments