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

Skip to content

Commit 1947991

Browse files
committed
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty. Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}" everywhere. Some other minor nits that I happened to come across.
1 parent dc8af0a commit 1947991

241 files changed

Lines changed: 1024 additions & 1022 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doc/lib/libaifc.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ \section{Standard Module \sectcode{aifc}}
2323

2424
Module \code{aifc} defines the following function:
2525

26-
\renewcommand{\indexsubitem}{(in module aifc)}
26+
\setindexsubitem{(in module aifc)}
2727
\begin{funcdesc}{open}{file\, mode}
2828
Open an AIFF or AIFF-C file and return an object instance with
2929
methods that are described below. The argument file is either a
@@ -38,7 +38,7 @@ \section{Standard Module \sectcode{aifc}}
3838
Objects returned by \code{aifc.open()} when a file is opened for
3939
reading have the following methods:
4040

41-
\renewcommand{\indexsubitem}{(aifc object method)}
41+
\setindexsubitem{(aifc object method)}
4242
\begin{funcdesc}{getnchannels}{}
4343
Return the number of audio channels (1 for mono, 2 for stereo).
4444
\end{funcdesc}

Doc/lib/libal.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ \section{Built-in Module \sectcode{al}}
2525

2626
The module defines the following functions:
2727

28-
\renewcommand{\indexsubitem}{(in module al)}
28+
\setindexsubitem{(in module al)}
2929

3030
\begin{funcdesc}{openport}{name\, direction\optional{\, config}}
3131
The name and direction arguments are strings. The optional config
@@ -59,7 +59,7 @@ \subsection{Configuration Objects}
5959
Configuration objects (returned by \code{al.newconfig()} have the
6060
following methods:
6161

62-
\renewcommand{\indexsubitem}{(audio configuration object method)}
62+
\setindexsubitem{(audio configuration object method)}
6363

6464
\begin{funcdesc}{getqueuesize}{}
6565
Return the queue size.
@@ -106,7 +106,7 @@ \subsection{Port Objects}
106106
Port objects (returned by \code{al.openport()} have the following
107107
methods:
108108

109-
\renewcommand{\indexsubitem}{(audio port object method)}
109+
\setindexsubitem{(audio port object method)}
110110

111111
\begin{funcdesc}{closeport}{}
112112
Close the port.
@@ -167,7 +167,7 @@ \section{Standard Module \sectcode{AL}}
167167
\samp{AL_} is omitted. Read the module source for a complete list of
168168
the defined names. Suggested use:
169169

170-
\bcode\begin{verbatim}
170+
\begin{verbatim}
171171
import al
172172
from AL import *
173-
\end{verbatim}\ecode
173+
\end{verbatim}

Doc/lib/libamoeba.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ \section{Built-in Module \sectcode{amoeba}}
1010

1111
The module \code{amoeba} defines the following items:
1212

13-
\renewcommand{\indexsubitem}{(in module amoeba)}
13+
\setindexsubitem{(in module amoeba)}
1414
\begin{funcdesc}{name_append}{path\, cap}
1515
Stores a capability in the Amoeba directory tree.
1616
Arguments are the pathname (a string) and the capability (a capability
@@ -77,15 +77,15 @@ \subsection{Capability Operations}
7777
\emph{a2c}(U).
7878
For example:
7979

80-
\bcode\begin{verbatim}
80+
\begin{verbatim}
8181
>>> amoeba.name_lookup('/profile/cap')
8282
aa:1c:95:52:6a:fa/14(ff)/8e:ba:5b:8:11:1a
8383
>>>
84-
\end{verbatim}\ecode
84+
\end{verbatim}
8585
%
8686
The following methods are defined for capability objects.
8787

88-
\renewcommand{\indexsubitem}{(capability method)}
88+
\setindexsubitem{(capability method)}
8989
\begin{funcdesc}{dir_list}{}
9090
Returns a list of the names of the entries in an Amoeba directory.
9191
\end{funcdesc}

Doc/lib/libanydbm.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ \section{Standard Modules \sectcode{anydbm} and \sectcode{dumbdbm}}
99

1010
% not the best solution, but it's what you get for documenting both
1111
% at the same time.
12-
\renewcommand{\indexsubitem}{(in modules anydbm, dumbdbm)}
12+
\setindexsubitem{(in modules anydbm, dumbdbm)}
1313

1414
\begin{funcdesc}{open}{filename\optional{\, flag\, mode}}
1515
Open the database file \var{filename} and return a corresponding object.

Doc/lib/libarray.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ \section{Built-in Module \sectcode{array}}
3636

3737
The module defines the following function:
3838

39-
\renewcommand{\indexsubitem}{(in module array)}
39+
\setindexsubitem{(in module array)}
4040

4141
\begin{funcdesc}{array}{typecode\optional{\, initializer}}
4242
Return a new array whose items are restricted by \var{typecode}, and
@@ -124,9 +124,9 @@ \section{Built-in Module \sectcode{array}}
124124
an array with the same type and value using reverse quotes
125125
(\code{``}). Examples:
126126
127-
\bcode\begin{verbatim}
127+
\begin{verbatim}
128128
array('l')
129129
array('c', 'hello world')
130130
array('l', [1, 2, 3, 4, 5])
131131
array('d', [1.0, 2.0, 3.14])
132-
\end{verbatim}\ecode
132+
\end{verbatim}

Doc/lib/libaudioop.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ \section{Built-in Module \sectcode{audioop}}
1313

1414
The module defines the following variables and functions:
1515

16-
\renewcommand{\indexsubitem}{(in module audioop)}
16+
\setindexsubitem{(in module audioop)}
1717
\begin{excdesc}{error}
1818
This exception is raised on all errors, such as unknown number of bytes
1919
per sample, etc.
@@ -201,7 +201,7 @@ \section{Built-in Module \sectcode{audioop}}
201201
treated equal. If this is a problem the stereo fragment should be split
202202
into two mono fragments first and recombined later. Here is an example
203203
of how to do that:
204-
\bcode\begin{verbatim}
204+
\begin{verbatim}
205205
def mul_stereo(sample, width, lfactor, rfactor):
206206
lsample = audioop.tomono(sample, width, 1, 0)
207207
rsample = audioop.tomono(sample, width, 0, 1)
@@ -210,7 +210,7 @@ \section{Built-in Module \sectcode{audioop}}
210210
lsample = audioop.tostereo(lsample, width, 1, 0)
211211
rsample = audioop.tostereo(rsample, width, 0, 1)
212212
return audioop.add(lsample, rsample, width)
213-
\end{verbatim}\ecode
213+
\end{verbatim}
214214
%
215215
If you use the ADPCM coder to build network packets and you want your
216216
protocol to be stateless (i.e.\ to be able to tolerate packet loss)
@@ -231,7 +231,7 @@ \section{Built-in Module \sectcode{audioop}}
231231
fast way to do this is to pick the most energetic piece of the output
232232
sample, locate that in the input sample and subtract the whole output
233233
sample from the input sample:
234-
\bcode\begin{verbatim}
234+
\begin{verbatim}
235235
def echocancel(outputdata, inputdata):
236236
pos = audioop.findmax(outputdata, 800) # one tenth second
237237
out_test = outputdata[pos*2:]
@@ -244,4 +244,4 @@ \section{Built-in Module \sectcode{audioop}}
244244
postfill = '\0'*(len(inputdata)-len(prefill)-len(outputdata))
245245
outputdata = prefill + audioop.mul(outputdata,2,-factor) + postfill
246246
return audioop.add(inputdata, outputdata, 2)
247-
\end{verbatim}\ecode
247+
\end{verbatim}

Doc/lib/libbase64.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ \section{Standard Module \sectcode{base64}}
1212
string \code{'www.python.org'} is encoded as the string
1313
\code{'d3d3LnB5dGhvbi5vcmc=\e n'}.
1414

15-
\renewcommand{\indexsubitem}{(in module base64)}
15+
\setindexsubitem{(in module base64)}
1616

1717
\begin{funcdesc}{decode}{input, output}
1818
Decode the contents of the \var{input} file and write the resulting

Doc/lib/libbasehttp.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ \section{Standard Module \sectcode{BaseHTTPServer}}
77
\index{URL}
88
\index{httpd}
99

10-
\renewcommand{\indexsubitem}{(in module BaseHTTPServer)}
10+
\setindexsubitem{(in module BaseHTTPServer)}
1111

1212
This module defines two classes for implementing HTTP servers
1313
(web servers). Usually, this module isn't used directly, but is used
@@ -21,13 +21,13 @@ \section{Standard Module \sectcode{BaseHTTPServer}}
2121
requests to a handler. Code to create and run the server looks like
2222
this:
2323

24-
\bcode\begin{verbatim}
24+
\begin{verbatim}
2525
def run(server_class=BaseHTTPServer.HTTPServer,
2626
handler_class=BaseHTTPServer.BaseHTTPRequestHandler):
2727
server_address = ('', 8000)
2828
httpd = server_class(server_address, handler_class)
2929
httpd.serve_forever()
30-
\end{verbatim}\ecode
30+
\end{verbatim}
3131
%
3232
The \code{HTTPServer} class builds on the \code{TCPServer} class by
3333
storing the server address as instance
@@ -49,7 +49,7 @@ \section{Standard Module \sectcode{BaseHTTPServer}}
4949
the relevant information is stored into instance variables of the
5050
handler.
5151

52-
\renewcommand{\indexsubitem}{(BaseHTTPRequestHandler instance variable)}
52+
\setindexsubitem{(BaseHTTPRequestHandler instance variable)}
5353

5454
\code{BaseHTTPRequestHandler} has the following instance variables:
5555

@@ -88,7 +88,7 @@ \section{Standard Module \sectcode{BaseHTTPServer}}
8888
to this stream.
8989
\end{datadesc}
9090

91-
\renewcommand{\indexsubitem}{(BaseHTTPRequestHandler class variable)}
91+
\setindexsubitem{(BaseHTTPRequestHandler class variable)}
9292

9393
\code{BaseHTTPRequestHandler} has the following class variables:
9494

@@ -138,7 +138,7 @@ \section{Standard Module \sectcode{BaseHTTPServer}}
138138
(see the \code{error_message_format} class variable).
139139
\end{datadesc}
140140

141-
\renewcommand{\indexsubitem}{(BaseHTTPRequestHandler method)}
141+
\setindexsubitem{(BaseHTTPRequestHandler method)}
142142

143143
A \code{BaseHTTPRequestHandler} instance has the following methods:
144144

Doc/lib/libbastion.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\section{Standard Module \sectcode{Bastion}}
22
\label{module-Bastion}
33
\stmodindex{Bastion}
4-
\renewcommand{\indexsubitem}{(in module Bastion)}
4+
\setindexsubitem{(in module Bastion)}
55

66
% I'm concerned that the word 'bastion' won't be understood by people
77
% for whom English is a second language, making the module name

Doc/lib/libbinascii.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ \section{Standard Module \sectcode{binhex}}
99

1010
The \code{binhex} module defines the following functions:
1111

12-
\renewcommand{\indexsubitem}{(in module binhex)}
12+
\setindexsubitem{(in module binhex)}
1313

1414
\begin{funcdesc}{binhex}{input\, output}
1515
Convert a binary file with filename \var{input} to binhex file
@@ -54,7 +54,7 @@ \section{Standard Module \sectcode{uu}}
5454

5555
The \code{uu} module defines the following functions:
5656

57-
\renewcommand{\indexsubitem}{(in module uu)}
57+
\setindexsubitem{(in module uu)}
5858

5959
\begin{funcdesc}{encode}{in_file\, out_file\optional{\, name\, mode}}
6060
Uuencode file \var{in_file} into file \var{out_file}. The uuencoded
@@ -82,7 +82,7 @@ \section{Built-in Module \sectcode{binascii}} % If implemented in C
8282

8383
The \code{binascii} module defines the following functions:
8484

85-
\renewcommand{\indexsubitem}{(in module binascii)}
85+
\setindexsubitem{(in module binascii)}
8686

8787
\begin{funcdesc}{a2b_uu}{string}
8888
Convert a single line of uuencoded data back to binary and return the

0 commit comments

Comments
 (0)