Skip to content

Commit 0814c03

Browse files
author
georg.brandl
committed
Part of #2154: minimal syntax fixes in doc example snippets.
git-svn-id: http://svn.python.org/projects/python/trunk@60938 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 99fc0ba commit 0814c03

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/distutils/setupscript.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ If you have a number of extensions all in the same package (or all under the
185185
same base package), use the :option:`ext_package` keyword argument to
186186
:func:`setup`. For example, ::
187187

188-
setup(...
188+
setup(...,
189189
ext_package='pkg',
190190
ext_modules=[Extension('foo', ['foo.c']),
191191
Extension('subpkg.bar', ['bar.c'])],
@@ -214,7 +214,7 @@ extension.
214214
This warning notwithstanding, options to SWIG can be currently passed like
215215
this::
216216

217-
setup(...
217+
setup(...,
218218
ext_modules=[Extension('_foo', ['foo.i'],
219219
swig_opts=['-modern', '-I../include'])],
220220
py_modules=['foo'],
@@ -443,7 +443,7 @@ option will allow the interpreter path to be explicitly overridden.
443443
The :option:`scripts` option simply is a list of files to be handled in this
444444
way. From the PyXML setup script::
445445

446-
setup(...
446+
setup(...,
447447
scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val']
448448
)
449449

@@ -501,7 +501,7 @@ anything which doesn't fit in the previous categories.
501501
:option:`data_files` specifies a sequence of (*directory*, *files*) pairs in the
502502
following way::
503503

504-
setup(...
504+
setup(...,
505505
data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
506506
('config', ['cfg/data.cfg']),
507507
('/etc/init.d', ['init-script'])]
@@ -613,7 +613,7 @@ information is sometimes used to indicate sub-releases. These are
613613

614614
:option:`classifiers` are specified in a python list::
615615

616-
setup(...
616+
setup(...,
617617
classifiers=[
618618
'Development Status :: 4 - Beta',
619619
'Environment :: Console',

Doc/library/optparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ arguments::
16331633
value.append(arg)
16341634
del rargs[0]
16351635

1636-
setattr(parser.values, option.dest, value)
1636+
setattr(parser.values, option.dest, value)
16371637

16381638
[...]
16391639
parser.add_option("-c", "--callback",

0 commit comments

Comments
 (0)