You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
>>> import argparse
>>> parser = argparse.ArgumentParser(fromfile_prefix_chars='@')
>>> parser.parse_args([''])
What is the expected output? What do you see instead?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg/argparse.py", line 1703, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg/argparse.py", line 1735, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg/argparse.py", line 1747, in _parse_known_args
arg_strings = self._read_args_from_files(arg_strings)
File "/usr/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg/argparse.py", line 1985, in _read_args_from_files
if arg_string[0] not in self.fromfile_prefix_chars:
IndexError: string index out of range
What version of the product are you using? On what operating system?
1.2.1, CentOS 5 w/ Python 2.6.8 from EPEL repository.
Original issue reported on code.google.com by [email protected] on 15 Jan 2014 at 5:16
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 15 Jan 2014 at 5:16The text was updated successfully, but these errors were encountered: