diff options
author | Fred Drake <fdrake@acm.org> | 2002-10-16 15:30:17 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-10-16 15:30:17 (GMT) |
commit | 071972e426c9782611bd5b66f036d35d809f7ee4 (patch) | |
tree | ec6f4f3a441a7365759dd13566c334b3d03ad97f /Doc/tools/indfix.py | |
parent | 06912b7702e46a1a31749b31911be4d44ccbdf27 (diff) | |
download | cpython-071972e426c9782611bd5b66f036d35d809f7ee4.zip cpython-071972e426c9782611bd5b66f036d35d809f7ee4.tar.gz cpython-071972e426c9782611bd5b66f036d35d809f7ee4.tar.bz2 |
Use string methods.
Diffstat (limited to 'Doc/tools/indfix.py')
-rwxr-xr-x | Doc/tools/indfix.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tools/indfix.py b/Doc/tools/indfix.py index 6e8e911..5bab0fb 100755 --- a/Doc/tools/indfix.py +++ b/Doc/tools/indfix.py @@ -19,13 +19,12 @@ isn't part of a group of similar items is not modified. __version__ = '$Revision$' import re -import string import StringIO import sys -def cmp_entries(e1, e2, lower=string.lower): - return cmp(lower(e1[1]), lower(e2[1])) or cmp(e1, e2) +def cmp_entries(e1, e2): + return cmp(e1[1].lower(), e2[1].lower()) or cmp(e1, e2) def dump_entries(write, entries): |