Skip to content

Commit 48310cd

Browse files
committed
Remove trailing whitespace.
1 parent 3d3558a commit 48310cd

File tree

127 files changed

+825
-825
lines changed

Some content is hidden

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

127 files changed

+825
-825
lines changed

Doc/c-api/buffer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ returning data from the target object.
3131

3232
.. index:: single: PyBufferProcs
3333

34-
More information on the buffer interface is provided in the section
34+
More information on the buffer interface is provided in the section
3535
:ref:`buffer-structs`, under the description for :ctype:`PyBufferProcs`.
3636

3737
Buffer objects are useful as a way to expose the data from another object's
@@ -104,7 +104,7 @@ could be used to pass around structured data in its native, in-memory format.
104104
pointer += strides[i] * indices[i];
105105
if (suboffsets[i] >=0 ) {
106106
pointer = *((char**)pointer) + suboffsets[i];
107-
}
107+
}
108108
}
109109
return (void*)pointer;
110110
}

Doc/c-api/conversion.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The following functions provide locale-independent string to number conversions.
8080

8181
See the Unix man page :manpage:`atof(2)` for details.
8282

83-
83+
8484
.. cfunction:: char * PyOS_stricmp(char *s1, char *s2)
8585

8686
Case insensitive comparison of strings. The function works almost

Doc/c-api/file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ the :mod:`io` module.
2222

2323
.. warning::
2424

25-
Take care when you are mixing streams and descriptors! For more
25+
Take care when you are mixing streams and descriptors! For more
2626
information, see `the GNU C Library docs
2727
<http://www.gnu.org/software/libc/manual/html_node/Stream_002fDescriptor-Precautions.html#Stream_002fDescriptor-Precautions>`_.
2828

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ Python-level trace functions in previous versions.
885885

886886
Return a tuple of function call counts. There are constants defined for the
887887
positions within the tuple:
888-
888+
889889
+-------------------------------+-------+
890890
| Name | Value |
891891
+===============================+=======+
@@ -911,7 +911,7 @@ Python-level trace functions in previous versions.
911911
+-------------------------------+-------+
912912
| :const:`PCALL_POP` | 10 |
913913
+-------------------------------+-------+
914-
914+
915915
:const:`PCALL_FAST_FUNCTION` means no argument tuple needs to be created.
916916
:const:`PCALL_FASTER_FUNCTION` means that the fast-path frame setup code is used.
917917

Doc/c-api/long.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ All integers are implemented as "long" integer objects of arbitrary size.
107107
retrieved from the resulting value using :cfunc:`PyLong_AsVoidPtr`.
108108

109109

110-
.. XXX alias PyLong_AS_LONG (for now)
110+
.. XXX alias PyLong_AS_LONG (for now)
111111
.. cfunction:: long PyLong_AsLong(PyObject *pylong)
112112

113113
.. index::
@@ -123,7 +123,7 @@ All integers are implemented as "long" integer objects of arbitrary size.
123123

124124
Return a C :ctype:`long` representation of the contents of *pylong*. If
125125
*pylong* is greater than :const:`LONG_MAX`, return -1 and
126-
set `*overflow` to 1 (for overflow) or -1 (for underflow).
126+
set `*overflow` to 1 (for overflow) or -1 (for underflow).
127127
If an exception is set because of type errors, also return -1.
128128

129129

Doc/c-api/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ There are only a few functions special to module objects.
9696

9797
.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
9898

99-
Add an int constant to *module*. The name and the value are taken from
99+
Add an int constant to *module*. The name and the value are taken from
100100
*macro*. For example ``PyModule_AddConstant(module, AF_INET)`` adds the int
101101
constant *AF_INET* with the value of *AF_INET* to *module*.
102102
Return ``-1`` on error, ``0`` on success.

Doc/c-api/reflection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Reflection
1515

1616
Return a dictionary of the local variables in the current execution frame,
1717
or *NULL* if no frame is currently executing.
18-
18+
1919

2020
.. cfunction:: PyObject* PyEval_GetGlobals()
2121

Doc/c-api/sequence.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ Sequence Protocol
143143

144144
Return the underlying array of PyObject pointers. Assumes that *o* was returned
145145
by :cfunc:`PySequence_Fast` and *o* is not *NULL*.
146-
146+
147147
Note, if a list gets resized, the reallocation may relocate the items array.
148-
So, only use the underlying array pointer in contexts where the sequence
148+
So, only use the underlying array pointer in contexts where the sequence
149149
cannot change.
150150

151151

Doc/distutils/apiref.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
104104
| *package_dir* | A mapping of package to | a dictionary |
105105
| | directory names | |
106106
+--------------------+--------------------------------+-------------------------------------------------------------+
107-
107+
108108

109109

110110
.. function:: run_setup(script_name[, script_args=None, stop_after='run'])
@@ -754,7 +754,7 @@ This module provides the following functions.
754754
standard output, otherwise do nothing.
755755

756756
.. % \subsection{Compiler-specific modules}
757-
.. %
757+
.. %
758758
.. % The following modules implement concrete subclasses of the abstract
759759
.. % \class{CCompiler} class. They should not be instantiated directly, but should
760760
.. % be created using \function{distutils.ccompiler.new_compiler()} factory
@@ -858,7 +858,7 @@ Contains :class:`MWerksCompiler`, an implementation of the abstract
858858
Macintosh. Needs work to support CW on Windows or Mac OS X.
859859

860860
.. % \subsection{Utility modules}
861-
.. %
861+
.. %
862862
.. % The following modules all provide general utility functions. They haven't
863863
.. % all been documented yet.
864864
@@ -1109,13 +1109,13 @@ other utility module.
11091109

11101110
For MacOS X systems the OS version reflects the minimal version on which
11111111
binaries will run (that is, the value of ``MACOSX_DEPLOYMENT_TARGET``
1112-
during the build of Python), not the OS version of the current system.
1112+
during the build of Python), not the OS version of the current system.
11131113

11141114
For universal binary builds on MacOS X the architecture value reflects
11151115
the univeral binary status instead of the architecture of the current
1116-
processor. For 32-bit universal binaries the architecture is ``fat``,
1117-
for 64-bit universal binaries the architecture is ``fat64``, and
1118-
for 4-way universal binaries the architecture is ``universal``.
1116+
processor. For 32-bit universal binaries the architecture is ``fat``,
1117+
for 64-bit universal binaries the architecture is ``fat64``, and
1118+
for 4-way universal binaries the architecture is ``universal``.
11191119

11201120
Examples of returned values on MacOS X:
11211121

@@ -1692,7 +1692,7 @@ lines, and joining lines with backslashes.
16921692

16931693
.. % todo
16941694
.. % \section{Distutils Commands}
1695-
.. %
1695+
.. %
16961696
.. % This part of Distutils implements the various Distutils commands, such
16971697
.. % as \code{build}, \code{install} \&c. Each command is implemented as a
16981698
.. % separate module, with the command name as the name of the module.

Doc/distutils/builtdist.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ file winds up deep in the "build tree," in a temporary directory created by
268268
.. % \longprogramopt{spec-file} option; used in conjunction with
269269
.. % \longprogramopt{spec-only}, this gives you an opportunity to customize
270270
.. % the \file{.spec} file manually:
271-
.. %
271+
.. %
272272
.. % \ begin{verbatim}
273273
.. % > python setup.py bdist_rpm --spec-only
274274
.. % # ...edit dist/FooBar-1.0.spec
275275
.. % > python setup.py bdist_rpm --spec-file=dist/FooBar-1.0.spec
276276
.. % \ end{verbatim}
277-
.. %
277+
.. %
278278
.. % (Although a better way to do this is probably to override the standard
279279
.. % \command{bdist\_rpm} command with one that writes whatever else you want
280280
.. % to the \file{.spec} file.)
@@ -334,31 +334,31 @@ The installer file will be written to the "distribution directory" --- normally
334334
Cross-compiling on Windows
335335
==========================
336336

337-
Starting with Python 2.6, distutils is capable of cross-compiling between
338-
Windows platforms. In practice, this means that with the correct tools
337+
Starting with Python 2.6, distutils is capable of cross-compiling between
338+
Windows platforms. In practice, this means that with the correct tools
339339
installed, you can use a 32bit version of Windows to create 64bit extensions
340340
and vice-versa.
341341

342-
To build for an alternate platform, specify the :option:`--plat-name` option
343-
to the build command. Valid values are currently 'win32', 'win-amd64' and
342+
To build for an alternate platform, specify the :option:`--plat-name` option
343+
to the build command. Valid values are currently 'win32', 'win-amd64' and
344344
'win-ia64'. For example, on a 32bit version of Windows, you could execute::
345345

346346
python setup.py build --plat-name=win-amd64
347347

348-
to build a 64bit version of your extension. The Windows Installers also
348+
to build a 64bit version of your extension. The Windows Installers also
349349
support this option, so the command::
350350

351351
python setup.py build --plat-name=win-amd64 bdist_wininst
352352

353353
would create a 64bit installation executable on your 32bit version of Windows.
354354

355-
To cross-compile, you must download the Python source code and cross-compile
355+
To cross-compile, you must download the Python source code and cross-compile
356356
Python itself for the platform you are targetting - it is not possible from a
357357
binary installtion of Python (as the .lib etc file for other platforms are
358-
not included.) In practice, this means the user of a 32 bit operating
359-
system will need to use Visual Studio 2008 to open the
360-
:file:`PCBuild/PCbuild.sln` solution in the Python source tree and build the
361-
"x64" configuration of the 'pythoncore' project before cross-compiling
358+
not included.) In practice, this means the user of a 32 bit operating
359+
system will need to use Visual Studio 2008 to open the
360+
:file:`PCBuild/PCbuild.sln` solution in the Python source tree and build the
361+
"x64" configuration of the 'pythoncore' project before cross-compiling
362362
extensions is possible.
363363

364364
Note that by default, Visual Studio 2008 does not install 64bit compilers or

0 commit comments

Comments
 (0)