Remove deprecated use of count as positional arg #62

Open
paul-elliott-arm wants to merge 1 commit from paul-elliott-arm/remove_re_sub_count_positional_arg into main
paul-elliott-arm commented 2024-10-25 08:50:50 -05:00 (Migrated from github.com)

No intended change in functionality. Just removing the deprecated warning I am getting every time I generate test code.

Python 13 requires count to be passed as a kwarg rather than a positional arg because of potential confusion with flags, see https://github.com/python/cpython/issues/56166

No intended change in functionality. Just removing the deprecated warning I am getting every time I generate test code. Python 13 requires count to be passed as a kwarg rather than a positional arg because of potential confusion with flags, see https://github.com/python/cpython/issues/56166
gilles-peskine-arm (Migrated from github.com) approved these changes 2024-10-25 09:58:28 -05:00
gilles-peskine-arm (Migrated from github.com) left a comment

LGTM

LGTM
gilles-peskine-arm (Migrated from github.com) requested changes 2024-10-25 10:00:34 -05:00
gilles-peskine-arm (Migrated from github.com) left a comment

breaks pylint

breaks pylint
@ -762,7 +762,7 @@ def escaped_split(inp_str, split_char):
raise ValueError('Expected split character. Found string!')
gilles-peskine-arm (Migrated from github.com) commented 2024-10-25 10:00:28 -05:00
                 count=len(inp_str)).split('\n')

otherwise pylint will complain

```suggestion count=len(inp_str)).split('\n') ``` otherwise pylint will complain
gilles-peskine-arm (Migrated from github.com) reviewed 2024-10-25 10:02:00 -05:00
@ -762,7 +762,7 @@ def escaped_split(inp_str, split_char):
raise ValueError('Expected split character. Found string!')
gilles-peskine-arm (Migrated from github.com) commented 2024-10-25 10:02:00 -05:00

Until we have a CI in the framework repository, please at least run directly relevant tests. Here, at least check-python-files.sh (in a CI-like venv), and make tests.

Until we have a CI in the framework repository, please at least run directly relevant tests. Here, at least `check-python-files.sh` (in a CI-like venv), and `make tests`.
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'paul-elliott-arm/remove_re_sub_count_positional_arg:paul-elliott-arm/remove_re_sub_count_positional_arg'
git switch 'paul-elliott-arm/remove_re_sub_count_positional_arg'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git switch 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git rebase 'main'
git switch 'main'
git merge --ff-only 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git switch 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git rebase 'main'
git switch 'main'
git merge --no-ff 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git switch 'main'
git merge --squash 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git switch 'main'
git merge --ff-only 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git switch 'main'
git merge 'paul-elliott-arm/remove_re_sub_count_positional_arg'
git push origin 'main'
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/mbedtls-framework!62
No description provided.