commit | 56d7913baebe520015c4d25dd1a7469cfd918527 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sun Mar 21 19:28:48 2004 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sun Mar 21 19:28:48 2004 +0000 |
tree | 3db28075c78c194589d05d7ca33779514943c750 | |
parent | 9303777f224c536ce8be9297d208f46527912b46 [diff] [blame] |
[Patch #900071] Be case-insensitive when removing 'usage:' string
diff --git a/Lib/optparse.py b/Lib/optparse.py index b89a6ce..bacef0f 100644 --- a/Lib/optparse.py +++ b/Lib/optparse.py
@@ -1033,7 +1033,7 @@ self.usage = "%prog [options]" elif usage is SUPPRESS_USAGE: self.usage = None - elif usage.startswith("usage: "): + elif usage.lower().startswith("usage: "): # for backwards compatibility with Optik 1.3 and earlier self.usage = usage[7:] else: