summaryrefslogtreecommitdiffstats
path: root/Lib/optparse.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-03-21 19:28:48 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-03-21 19:28:48 (GMT)
commit56d7913baebe520015c4d25dd1a7469cfd918527 (patch)
tree3db28075c78c194589d05d7ca33779514943c750 /Lib/optparse.py
parent9303777f224c536ce8be9297d208f46527912b46 (diff)
downloadcpython-56d7913baebe520015c4d25dd1a7469cfd918527.zip
cpython-56d7913baebe520015c4d25dd1a7469cfd918527.tar.gz
cpython-56d7913baebe520015c4d25dd1a7469cfd918527.tar.bz2
[Patch #900071] Be case-insensitive when removing 'usage:' string
Diffstat (limited to 'Lib/optparse.py')
-rw-r--r--Lib/optparse.py2
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: