Commit fe88397
committed
FIX: account for changes in py310
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!).1 parent 2bb2597 commit fe88397
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
| 931 | + | |
| 932 | + | |
931 | 933 | | |
932 | 934 | | |
933 | 935 | | |
| |||
0 commit comments