[Python-3000-checkins] r56251 - python/branches/p3yk/Doc/tools/buildindex.py
neal.norwitz
python-3000-checkins at python.org
Wed Jul 11 09:01:01 CEST 2007
Author: neal.norwitz
Date: Wed Jul 11 09:01:01 2007
New Revision: 56251
Modified:
python/branches/p3yk/Doc/tools/buildindex.py
Log:
Get working with map returning an iterator (had to fix whitespace too)
Modified: python/branches/p3yk/Doc/tools/buildindex.py
==============================================================================
--- python/branches/p3yk/Doc/tools/buildindex.py (original)
+++ python/branches/p3yk/Doc/tools/buildindex.py Wed Jul 11 09:01:01 2007
@@ -36,14 +36,14 @@
str = pattern.sub(replacement, str)
# build up the text
self.text = split_entry_text(str)
- self.key = split_entry_key(str)
-
+ self.key = list(split_entry_key(str))
+
def __eq__(self, other):
return cmp(self, other) == 0
-
+
def __lt__(self, other):
return cmp(self, other) == -1
-
+
def __gt__(self, other):
return cmp(self, other) == 1
More information about the Python-3000-checkins
mailing list