Skip to content

Commit

Permalink
[Patch #900071] Be case-insensitive when removing 'usage:' string
Browse files Browse the repository at this point in the history
  • Loading branch information
akuchling committed Mar 21, 2004
1 parent 9303777 commit 56d7913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/optparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ def set_usage (self, usage):
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:
Expand Down

0 comments on commit 56d7913

Please sign in to comment.