Skip to content

Conversation

@JosephSBoyle
Copy link
Contributor

@JosephSBoyleJosephSBoyle commented Mar 8, 2023

Removes invisible pagebreak chars from the repository.

These chars are not visible in the gh-diff, but code editors should display them. For instance VSCode displays it as this strange red box:

image

@JosephSBoyleJosephSBoyle requested a review from a team as a code ownerMarch 8, 2023 11:13
@JosephSBoyleJosephSBoyle marked this pull request as draft March 8, 2023 11:16
@JosephSBoyleJosephSBoyleforce-pushed the fix-issue-102507 branch 2 times, most recently from c1a6775 to a236e91CompareMarch 8, 2023 11:26
@JosephSBoyleJosephSBoyle marked this pull request as ready for review March 8, 2023 11:43
@AlexWaygood
Copy link
Member

FYI we much prefer merge commits over rebases in the CPython repo, where possible. Rebases (well, force-pushes in general) interact quite badly with the GitHub UI, making it quite hard to see what changed in between commits and making incremental review quite difficult. Everything's squash-merged in the end anyway, so a messy git history on a PR is usually nothing to worry about!

@JosephSBoyle
Copy link
ContributorAuthor

FYI we much prefer merge commits over rebases in the CPython repo, where possible. Rebases (well, force-pushes in general) interact quite badly with the GitHub UI, making it quite hard to see what changed in between commits and making incremental review quite difficult. Everything's squash-merged in the end anyway, so a messy git history on a PR is usually nothing to worry about!

Aha, that makes sense. Thanks for the headsup @AlexWaygood 🙇

Copy link
Member

@AlexWaygoodAlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sobolevn
Copy link
Member

I once saw a similar PR that was rejected :(
But, I cannot remember by who and why

@AlexWaygood
Copy link
Member

AlexWaygood commented Mar 8, 2023

I once saw a similar PR that was rejected :( But, I cannot remember by who and why

It was rejected because Guido said we should do it all at once if we wanted to do it, rather than doing it just in one file. And that's exactly what @JosephSBoyle has done here :)

@AlexWaygoodAlexWaygood merged commit b097925 into python:mainMar 8, 2023
carljm added a commit to carljm/cpython that referenced this pull request Mar 8, 2023
* main: pythongh-102304: Consolidate Direct Usage of _Py_RefTotal (pythongh-102514) pythongh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (in Objects/) (python#102218) pythongh-102507 Remove invisible pagebreak characters (python#102531) pythongh-102515: Remove unused imports in the `Lib/` directory (python#102516) Remove or update bitbucket links (pythonGH-101963) pythongh-101100: Fix sphinx warnings in `zipapp` and `zipfile` modules (python#102526) pythonGH-102397: Fix segfault from race condition in signal handling (python#102399) Fix style in argparse.rst (python#101733) Post 3.12.0a6 fix typo in async generator code field name `ag_code` (python#102448) Python 3.12.0a6
@hugovkhugovk added the needs backport to 3.11 only security fixes label Aug 22, 2023
@miss-islington
Copy link
Contributor

Thanks @JosephSBoyle for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 22, 2023
(cherry picked from commit b097925) Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
@bedevere-bot
Copy link

GH-108266 is a backport of this pull request to the 3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11 only security fixes label Aug 22, 2023
AlexWaygood added a commit that referenced this pull request Aug 22, 2023
…108266) gh-102507 Remove invisible pagebreak characters (GH-102531) (cherry picked from commit b097925) Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove invisible pagebreak chars from the standard library

6 participants

@JosephSBoyle@AlexWaygood@sobolevn@miss-islington@bedevere-bot@hugovk