Skip to content

Commit 2dceb35

Browse files
committed
Update merge from 2.7: s/basetring/str
1 parent eaae1b7 commit 2dceb35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/argparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ def consume_positionals(start_index):
19571957
# twice (which may fail) if the argument was given, but
19581958
# only if it was defined already in the namespace
19591959
if (action.default is not None and
1960-
isinstance(action.default, basestring) and
1960+
isinstance(action.default, str) and
19611961
hasattr(namespace, action.dest) and
19621962
action.default is getattr(namespace, action.dest)):
19631963
setattr(namespace, action.dest,

0 commit comments

Comments
 (0)