Skip to content

Commit ad7f2b2

Browse files
serhiy-storchakagvanrossum
authored andcommitted
Remove trailing spaces from many PEPs (python#983)
1 parent 1b0e822 commit ad7f2b2

25 files changed

+205
-205
lines changed

README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ reStructuredText for PEPs
2121
=========================
2222

2323
Original PEP source should be written in reStructuredText format,
24-
which is a constrained version of plaintext, and is described in
24+
which is a constrained version of plaintext, and is described in
2525
PEP 12. Older PEPs were often written in a more mildly restricted
26-
plaintext format, as described in PEP 9. The ``pep2html.py``
27-
processing and installation script knows how to produce the HTML
26+
plaintext format, as described in PEP 9. The ``pep2html.py``
27+
processing and installation script knows how to produce the HTML
2828
for either PEP format.
2929

3030
For processing reStructuredText format PEPs, you need the docutils

pep-0001.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Each PEP should have the following parts/sections:
427427
The rationale should provide evidence of consensus within the
428428
community and discuss important objections or concerns raised
429429
during discussion.
430-
430+
431431
5. Specification -- The technical specification should describe the
432432
syntax and semantics of any new language feature. The
433433
specification should be detailed enough to allow competing,
@@ -440,7 +440,7 @@ Each PEP should have the following parts/sections:
440440
author proposes to deal with these incompatibilities. PEP
441441
submissions without a sufficient backwards compatibility treatise
442442
may be rejected outright.
443-
443+
444444
7. Security Implications -- If there are security concerns in relation
445445
to the PEP, those concerns should be explicitly written out to make
446446
sure reviewers of the PEP are aware of them.
@@ -465,14 +465,14 @@ Each PEP should have the following parts/sections:
465465
The final implementation must include test code and documentation
466466
appropriate for either the Python language reference or the
467467
standard library reference.
468-
468+
469469
10. Rejected Ideas -- Throughout the discussion of a PEP, various ideas
470470
will be proposed which are not accepted. Those rejected ideas should
471471
be recorded along with the reasoning as to why they were rejected.
472472
This both helps record the thought process behind the final version
473473
of the PEP as well as preventing people from bringing up the same
474474
rejected idea again in subsequent discussions.
475-
475+
476476
In a way this section can be thought of as a breakout section of the
477477
Rationale section that is focused specifically on why certain ideas
478478
were not ultimately pursued.
@@ -483,9 +483,9 @@ Each PEP should have the following parts/sections:
483483
resolution. This helps make sure all issues required for the PEP to be
484484
ready for consideration are complete complete and reduces people
485485
duplicating prior discussion.
486-
487-
12. References -- A collection of URLs used as references through the PEP.
488-
486+
487+
12. References -- A collection of URLs used as references through the PEP.
488+
489489
13. Copyright/public domain -- Each PEP must either be explicitly
490490
labeled as placed in the public domain (see this PEP as an
491491
example) or licensed under the `Open Publication License`_.

pep-0012.rst

+37-37
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ directions below.
7373
Your email address may appear second (or it can be omitted) and if
7474
it appears, it must appear in angle brackets. It is okay to
7575
obfuscate your email address.
76-
76+
7777
- If none of the authors are Python core developers and this PEP is
7878
ready to be submitted to the PEP repository, include a Sponsor header
7979
with the name of the core developer sponsoring your PEP.
@@ -158,7 +158,7 @@ your PEP)::
158158
Title: [...]
159159
Author: [Full Name <email at example.com>]
160160
Sponsor: *[Full Name <email at example.com>]
161-
BDFL-Delegate:
161+
BDFL-Delegate:
162162
Discussions-To: *[...]
163163
Status: Draft
164164
Type: [Standards Track | Informational | Process]
@@ -603,8 +603,8 @@ should be avoided. For ordinary text, use ordinary 'single-quotes' or
603603
above), use double-backquotes::
604604

605605
``literal text: in here, anything goes!``
606-
607-
606+
607+
608608
Suggested Sections
609609
==================
610610
Various sections are found to be common across PEPs and are outlined in
@@ -613,70 +613,70 @@ PEP 1 [1]_. Those sections are provided here for convenience.
613613

614614
Abstract
615615
========
616-
616+
617617
[A short (~200 word) description of the technical issue being addressed.]
618-
619-
618+
619+
620620
Motivation
621621
==========
622-
622+
623623
[Clearly explain why the existing language specification is inadequate to address the problem that the PEP solves.]
624-
625-
624+
625+
626626
Rationale
627627
=========
628-
628+
629629
[Describe why particular design decisions were made.]
630-
631-
630+
631+
632632
Specification
633633
=============
634-
634+
635635
[Describe the syntax and semantics of any new language feature.]
636-
637-
636+
637+
638638
Backwards Compatibility
639639
=======================
640-
640+
641641
[Describe potential impact and severity on pre-existing code.]
642-
643-
642+
643+
644644
Security Implications
645645
=====================
646-
646+
647647
[How could a malicious user take advantage of this new feature?]
648-
649-
648+
649+
650650
How to Teach This
651651
=================
652-
652+
653653
[How to teach users, new and experienced, how to apply the PEP to their work.]
654-
655-
654+
655+
656656
Reference Implementation
657657
========================
658-
658+
659659
[Link to any existing implementation and details about its state, e.g. proof-of-concept.]
660-
661-
660+
661+
662662
Rejected Ideas
663663
==============
664-
664+
665665
[Why certain ideas that were brought while discussing this PEP were not ultimately pursued.]
666-
667-
666+
667+
668668
Open Issues
669669
===========
670-
670+
671671
[Any points that are still being decided/discussed.]
672-
673-
672+
673+
674674
References
675675
==========
676-
676+
677677
[A collection of URLs used as references through the PEP.]
678-
679-
678+
679+
680680
Copyright
681681
=========
682682

pep-0203.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ members must first check that they are available with the
226226
if (PyType_HasFeature(x->ob_type, Py_TPFLAGS_HAVE_INPLACE_OPS) &&
227227
x->ob_type->tp_as_number && x->ob_type->tp_as_number->nb_inplace_add) {
228228
/* ... */
229-
229+
230230
This check must be made even before testing the method slots for ``NULL``
231231
values! The macro only tests whether the slots are available, not whether
232232
they are filled with methods or not.

pep-0225.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ Miscellaneous issues
482482
- Additional multiplication operators. Several forms of multiplications are
483483
used in (multi-)linear algebra. Most can be seen as variations of
484484
multiplication in linear algebra sense (such as Kronecker product). But two
485-
forms appear to be more fundamental: outer product and inner product.
485+
forms appear to be more fundamental: outer product and inner product.
486486
However, their specification includes indices, which can be either
487487

488488
- associated with the operator, or
@@ -542,7 +542,7 @@ a given operator. Several examples are listed here:
542542
Among them, the ``&`` ``|`` ``^`` ``~`` operators can be regarded as
543543
elementwise versions of lattice operators applied to integers regarded as
544544
bit strings.::
545-
545+
546546
5 and 6 # 6
547547
5 or 6 # 5
548548

@@ -556,7 +556,7 @@ a given operator. Several examples are listed here:
556556
make ``xor`` a reserved word.
557557

558558
2. List arithmetics.::
559-
559+
560560
[1, 2] + [3, 4] # [1, 2, 3, 4]
561561
[1, 2] ~+ [3, 4] # [4, 6]
562562

pep-0255.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ Then why not some other special syntax without a new keyword?
386386
-------------------------------------------------------------
387387

388388
For example, one of these instead of ``yield 3``::
389-
389+
390390
return 3 and continue
391391
return and continue 3
392392
return generating 3

pep-0440.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ the initial reference implementation was released in setuptools 8.0 and pip
15341534
This change was based on user feedback received when setuptools 8.0
15351535
started applying normalisation to the release metadata generated when
15361536
preparing packages for publication on PyPI [8]_.
1537-
1537+
15381538
* The PEP text and the ``is_canonical`` regex were updated to be explicit
15391539
that numeric components are specifically required to be represented as
15401540
squences of ASCII digits, not arbitrary Unicode [Nd] code points. This
@@ -1575,7 +1575,7 @@ justifications for needing such a standard can be found in PEP 386.
15751575

15761576
.. [9] Changing the status of PEP 440 to Provisional
15771577
https://mail.python.org/pipermail/distutils-sig/2014-December/025412.html
1578-
1578+
15791579
.. [10] PEP 440: regex should not permit Unicode [Nd] characters
15801580
https://github.com/python/peps/pull/966
15811581

pep-0447.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ dictionary::
4949
return cls.__dict__[name]
5050
except KeyError:
5151
raise AttributeError(name) from None
52-
53-
52+
53+
5454
PEP Status
5555
==========
5656

pep-0505.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ short-circuited. For example, ``await a?.b(c).d?[e]`` is evaluated::
170170
_v = _v[e]
171171
await _v
172172

173-
.. note::
173+
.. note::
174174
``await`` will almost certainly fail in this context, as it would in
175175
the case where code attempts ``await None``. We are not proposing to add a
176176
``None``-aware ``await`` keyword here, and merely include it in this

pep-0512.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ Optional features:
774774
- `Bot to generate cherry-pick pull requests`_
775775
- Write `.github/CONTRIBUTING.md`
776776
(to prevent PRs that are inappropriate from even showing up and pointing to the devguide)
777-
777+
778778

779779

780780
Open Issues

pep-0538.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ successfully configured::
466466

467467
(Note: this warning ended up being silenced by default. See the
468468
Implementation Note above for more details)
469-
469+
470470
As long as the current platform provides at least one of the candidate UTF-8
471471
based environments, this locale coercion will mean that the standard
472472
Python binary *and* locale-aware extensions should once again "just work"

pep-0541.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,17 @@ names as unavailable for security reasons.
219219
Intellectual property policy
220220
----------------------------
221221

222-
It is the policy of Python Software Foundation and the Package Index
223-
maintainers to be appropriately responsive to claims of intellectual
222+
It is the policy of Python Software Foundation and the Package Index
223+
maintainers to be appropriately responsive to claims of intellectual
224224
property infringement by third parties. It is not the policy of
225225
the Python Software Foundation nor the Package Index maintainers
226-
to pre-screen uploaded packages for any type of intellectual property
227-
infringement.
226+
to pre-screen uploaded packages for any type of intellectual property
227+
infringement.
228228

229229
Possibly-infringing packages should be reported to [email protected]
230-
and counsel to the Python Software Foundation will determine an
230+
and counsel to the Python Software Foundation will determine an
231231
appropriate response. A package can be removed or transferred to a
232-
new owner at the sole discretion of the Python Software Foundation to
232+
new owner at the sole discretion of the Python Software Foundation to
233233
address a claim of infringement.
234234

235235
A project published on the Package Index meeting ANY of the following
@@ -244,9 +244,9 @@ or transferral to a new owner:
244244
the subject of a complaint; or
245245
* project is subject to an active lawsuit.
246246

247-
In the event of a complaint for intellectual property infringement,
248-
a copy of the complaint will be sent to the package owner. In some
249-
cases, action may be taken by the Package Index maintainers before
247+
In the event of a complaint for intellectual property infringement,
248+
a copy of the complaint will be sent to the package owner. In some
249+
cases, action may be taken by the Package Index maintainers before
250250
the owner responds.
251251

252252

pep-0547.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Type: Standards Track
99
Content-Type: text/x-rst
1010
Created: 25-May-2017
1111
Python-Version: 3.7
12-
Post-History:
12+
Post-History:
1313

1414

1515
Deferral Notice
@@ -161,7 +161,7 @@ importlib's ``ExtensionFileLoader`` will get an implementation of
161161
extension module's ``PyInit_*`` function.
162162

163163
The ``PyInit_*`` function can return either a fully initialized module
164-
(single-phase initialization) or a ``PyModuleDef`` (for PEP 489 multi-phase
164+
(single-phase initialization) or a ``PyModuleDef`` (for PEP 489 multi-phase
165165
initialization).
166166

167167
In the single-phase initialization case, ``_imp.exec_in_module`` will raise

pep-0549.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ an extension to the descriptor protocol allowing use of
2626
the descriptor protocol for members of *instances.* This
2727
would permit using properties in modules.
2828

29-
Rationale
29+
Rationale
3030
=========
3131

3232
Python's descriptor protocol guides programmers towards

0 commit comments

Comments
 (0)