diff options
author | Barry Warsaw <barry@python.org> | 2012-09-12 14:42:34 -0400 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2012-09-12 14:42:34 -0400 |
commit | dbfb6982d89e355c82e9478f4dc29cbb6505785b (patch) | |
tree | 51f0044990a902bd8b7332a5b80e6b7aca4eaad0 /Lib/argparse.py | |
parent | 12342f16d2471c84ae80b9f76b29edf3f769fb5d (diff) | |
download | cpython-dbfb6982d89e355c82e9478f4dc29cbb6505785b.tar.gz |
Update merge from 2.7: s/basetring/str
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 e2677f81d6..eb894caebc 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -1957,7 +1957,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer): # twice (which may fail) if the argument was given, but # only if it was defined already in the namespace if (action.default is not None and - isinstance(action.default, basestring) and + isinstance(action.default, str) and hasattr(namespace, action.dest) and action.default is getattr(namespace, action.dest)): setattr(namespace, action.dest, |