summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2012-09-12 19:31:38 (GMT)
committerBarry Warsaw <barry@python.org>2012-09-12 19:31:38 (GMT)
commitd89774e1581ad2ca03ba06876d0fe4f2a2d8ff91 (patch)
treec765a7143fe958d03e4b92d2a8b75b7fac714387 /Lib/argparse.py
parent77c45538f79a1b0110e088d256a222d68563354d (diff)
parent2dceb359cb0353d4f327fc36be27e67a3e94566e (diff)
downloadcpython-d89774e1581ad2ca03ba06876d0fe4f2a2d8ff91.zip
cpython-d89774e1581ad2ca03ba06876d0fe4f2a2d8ff91.tar.gz
cpython-d89774e1581ad2ca03ba06876d0fe4f2a2d8ff91.tar.bz2
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 66cd70a..f25b1b6 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,