-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
[3.11] Trim trailing whitespace and test on CI (GH-104275) #108215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9327cf7
Add pre-commit config and test on CI
hugovk cd547a2
Trim trailing whitespace
hugovk b40bc8e
Add Alex to CODEOWNERS
hugovk 877393b
Add concurrency key to avoid duplicate builds
hugovk 834cc88
Revert "Trim trailing whitespace"
hugovk 1e42568
Merge branch '3.11' into 3.11-pre-commit
hugovk 7cbfc5f
Trim the trailing whitespace
hugovk b0f574b
Apply suggestions from code review
hugovk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Trim trailing whitespace
- Loading branch information
commit cd547a2fd51455f9816bfba8e6912a2a4ca8155f
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,12 @@ | |
_embedded_header = re.compile(r'\n[^ \t]+:') | ||
|
||
|
||
|
||
AlexWaygood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Helpers | ||
_max_append = email.quoprimime._max_append | ||
|
||
|
||
|
||
AlexWaygood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
def decode_header(header): | ||
"""Decode a message header value without converting charset. | ||
|
||
|
@@ -152,7 +152,7 @@ def decode_header(header): | |
return collapsed | ||
|
||
|
||
|
||
AlexWaygood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
def make_header(decoded_seq, maxlinelen=None, header_name=None, | ||
continuation_ws=' '): | ||
"""Create a Header from a sequence of pairs as returned by decode_header() | ||
|
@@ -175,7 +175,7 @@ def make_header(decoded_seq, maxlinelen=None, header_name=None, | |
return h | ||
|
||
|
||
|
||
AlexWaygood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
class Header: | ||
def __init__(self, s=None, charset=None, | ||
maxlinelen=None, header_name=None, | ||
|
@@ -409,7 +409,7 @@ def _normalize(self): | |
self._chunks = chunks | ||
|
||
|
||
|
||
AlexWaygood marked this conversation as resolved.
Show resolved
Hide resolved
|
||
class _ValueFormatter: | ||
def __init__(self, headerlen, maxlen, continuation_ws, splitchars): | ||
self._maxlen = maxlen | ||
10000
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.