From 56d7913baebe520015c4d25dd1a7469cfd918527 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sun, 21 Mar 2004 19:28:48 +0000 Subject: [PATCH] [Patch #900071] Be case-insensitive when removing 'usage:' string --- Lib/optparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/optparse.py b/Lib/optparse.py index b89a6ce7dfb..bacef0f311b 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: