mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Use string methods.
This commit is contained in:
parent
06912b7702
commit
071972e426
7 changed files with 18 additions and 23 deletions
|
|
@ -19,13 +19,12 @@
|
|||
__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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue