summaryrefslogtreecommitdiff
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2012-09-12 15:31:38 -0400
committerBarry Warsaw <barry@python.org>2012-09-12 15:31:38 -0400
commitd89774e1581ad2ca03ba06876d0fe4f2a2d8ff91 (patch)
treec765a7143fe958d03e4b92d2a8b75b7fac714387 /Lib/argparse.py
parent77c45538f79a1b0110e088d256a222d68563354d (diff)
parent2dceb359cb0353d4f327fc36be27e67a3e94566e (diff)
downloadcpython-git-d89774e1581ad2ca03ba06876d0fe4f2a2d8ff91.tar.gz
Merge 3.2 fix updates and tests for issue #15906.
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 66cd70aa31..f25b1b6610 100644
--- a/Lib/argparse.py
+++ b/Lib/argparse.py
@@ -1961,7 +1961,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, _StoreAction) and
+ isinstance(action.default, str) and
hasattr(namespace, action.dest) and
action.default is getattr(namespace, action.dest)):
setattr(namespace, action.dest,