summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-05-18 01:53:01 (GMT)
committerGitHub <noreply@github.com>2020-05-18 01:53:01 (GMT)
commit9681953c99b686cf23d1c476a2b26d2ddbec7694 (patch)
tree599a06df91b58d1d3967546c7604c74ebba16b62 /Lib/argparse.py
parenteefd4e033334a2a1d3929d0f7978469e5b5c4e56 (diff)
downloadcpython-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.py2
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 []