diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2020-05-18 01:53:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 01:53:01 (GMT) |
commit | 9681953c99b686cf23d1c476a2b26d2ddbec7694 (patch) | |
tree | 599a06df91b58d1d3967546c7604c74ebba16b62 /Lib/argparse.py | |
parent | eefd4e033334a2a1d3929d0f7978469e5b5c4e56 (diff) | |
download | cpython-9681953c99b686cf23d1c476a2b26d2ddbec7694.zip cpython-9681953c99b686cf23d1c476a2b26d2ddbec7694.tar.gz cpython-9681953c99b686cf23d1c476a2b26d2ddbec7694.tar.bz2 |
bpo-39058: Preserve attribute order in argparse Namespace reprs. (GH-17621)
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r-- | Lib/argparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index 9c710ce..2677ef6 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -129,7 +129,7 @@ class _AttributeHolder(object): return '%s(%s)' % (type_name, ', '.join(arg_strings)) def _get_kwargs(self): - return sorted(self.__dict__.items()) + return list(self.__dict__.items()) def _get_args(self): return [] |