Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaae1b7 commit 2dceb35Copy full SHA for 2dceb35
1 file changed
Lib/argparse.py
@@ -1957,7 +1957,7 @@ def consume_positionals(start_index):
1957
# twice (which may fail) if the argument was given, but
1958
# only if it was defined already in the namespace
1959
if (action.default is not None and
1960
- isinstance(action.default, basestring) and
+ isinstance(action.default, str) and
1961
hasattr(namespace, action.dest) and
1962
action.default is getattr(namespace, action.dest)):
1963
setattr(namespace, action.dest,
0 commit comments