Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-103997: Automatically dedent the argument to "-c"#103998
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
49 commits Select commitHold shift + click to select a range
16be08f Very rough proof-of-concept
Erotemice88216b Cleanups and comments
Erotemicbcb7c77 Fix bad decref, only trigger if command starts with a newline
Erotemicfb8985a wchar dedent
Erotemic26f27a8 tweaks
Erotemic417eff8 Use new char* implementation
Erotemic924e0a6 Rename function
Erotemic9f95672 tweaks
Erotemic3f4a78b More tweaks
Erotemic97f2079 Replace strncmp with direct char comparison
Erotemic04435eb Remove debug code
Erotemic4c4eca9 Made new function static
Erotemicf9c969b Handwritten char iter and _PyBytesWriter_
Erotemic674f1e0 reimplement it to imitate `textwrap.dedent`
sunmy201905d4169 fix missing initialization
sunmy20199d53c4e fix ref leak
sunmy2019689a13a fix empty string
sunmy2019f0ac7ea nit: remove unnecessary variable
sunmy201971cad01 remove unnecessary include
sunmy20194549de8 Add test cases
Erotemic0c3b90b Fix test on windows
Erotemic1f5b746 normalize windows line endings
Erotemicca40589 Merge branch 'main' into dedent_pymain_command
Erotemic1f17e23 Update Modules/main.c
sunmy20192de2e1e Merge branch 'python:main' into dedent_pymain_command
sunmy2019c84616c refactor code
sunmy2019a19b675 Apply suggestions from code review
sunmy20197ce411f Update Misc/NEWS.d/next/Core and Builtins/2023-04-29-23-15-38.gh-issu…
sunmy2019dea4301 resolve comments
sunmy2019e06d40c Update Modules/main.c
sunmy2019a40d028 rename `out` to `dest`
sunmy20199569655 move to _PyUnicode_Dedent
sunmy20191735d0f Apply suggestions from code review
sunmy2019d3681b7 clean up things
sunmy20193b4a7bc Merge branch 'main' into dedent_pymain_command
Erotemicf355760 Merge branch 'main' into dedent_pymain_command
Erotemicb1e89c9 Merge branch 'main' into dedent_pymain_command
AA-Turnerd1b4cd1 Update Misc/NEWS.d/next/Core and Builtins/2023-04-29-23-15-38.gh-issu…
Erotemice556bbf lint: space in folder name
Erotemic136c8b0 Explicit include of pycore_unicodeobject.h
Erotemic8e5cc7f Merge branch 'main' into dedent_pymain_command
Erotemiccd14a00 Apply suggestions from code review
sunmy201907d2273 Resolve Comments
sunmy2019ed6e17b Refactor implementation
sunmy2019d1edb1b Merge branch 'main' into dedent_pymain_command
sunmy20194c78c57 Apply suggestions from code review
methane38d2a4e add what's new entry
methane42b6330 Document dedentation of command in version 3.14
methane98c17e5 Apply suggestions from code review
picnixzFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Merge branch 'main' into dedent_pymain_command
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit3b4a7bc1c65ea75d5b40dce80f443885b1649315
There are no files selected for viewing
20 changes: 20 additions & 0 deletionsLib/test/test_cmd_line.py
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
You are viewing a condensed version of this merge commit. You can view thefull changes here.
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.