diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-03-21 19:28:48 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-03-21 19:28:48 (GMT) |
commit | 56d7913baebe520015c4d25dd1a7469cfd918527 (patch) | |
tree | 3db28075c78c194589d05d7ca33779514943c750 | |
parent | 9303777f224c536ce8be9297d208f46527912b46 (diff) | |
download | cpython-56d7913baebe520015c4d25dd1a7469cfd918527.zip cpython-56d7913baebe520015c4d25dd1a7469cfd918527.tar.gz cpython-56d7913baebe520015c4d25dd1a7469cfd918527.tar.bz2 |
[Patch #900071] Be case-insensitive when removing 'usage:' string
-rw-r--r-- | Lib/optparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class OptionParser (OptionContainer): 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: |