Skip to content
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

FIX: account for changes in py310 #678

Merged
merged 1 commit into from
Sep 28, 2021
Merged

Conversation

tacaswell
Copy link
Contributor

@tacaswell tacaswell commented Sep 27, 2021

In python/cpython#28420 the order of setting the
default values on the Namespace object and processing the Actions was reversed. This means
that in the __call__ method of _FlagAction the _flags attribute has not
yet been put on the namespace.

This change makes _FlagAction.__call__ forgiving if the _flags attribute
does not exist (by creating it!).

In python/cpython#28420 the order of setting the
default values on the Namespace object and processing the Actions was reversed.
This means that in the `__call__` method of `_FlagAction` the `_flags`
attribute has not yet been put on the namespace.

This change makes `_FlagAction.__call__` forgiving if the `_flags` attribute
does not exist (by creating it!).
@minrk
Copy link
Member

minrk commented Sep 28, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants