GNOME Bugzilla – Bug 496278
Error in option.parse_args()
Last modified: 2007-11-12 22:00:43 UTC
Traceback (most recent call last):
+ Trace 177295
parser.parse_args ()
args = args[2:-len(old_args)]
If you call parse_args() with no argument, args is None, and at the end of the function, there's this: args = args[2:-len(old_args)] where old_args is None (because args was None). This is the source of the error.
2007-11-12 Johan Dahlin <johan@gnome.org> * gobject/option.py (OptionParser.parse_args): Set the default value of old_args to 0, so we don't end up slicing with None. Fixes #496278 (Vincent Untz)