Revision: 6752
Author: nicdumz
Date: 2009-04-29 21:39:55 +0000 (Wed, 29 Apr 2009)
Log Message:
-----------
Do not check again for key range: that has been done two lines before
Modified Paths:
--------------
trunk/pywikipedia/diskcache.py
Modified: trunk/pywikipedia/diskcache.py
===================================================================
--- trunk/pywikipedia/diskcache.py 2009-04-29 16:21:41 UTC (rev 6751)
+++ trunk/pywikipedia/diskcache.py 2009-04-29 21:39:55 UTC (rev 6752)
@@ -80,12 +80,8 @@
raise KeyError(key)
if index < 'a':
- if index < '0' or index > '9':
- raise KeyError(key)
i = ord(index) - 48 + 26 # Numeric
else:
- if index > 'z':
- raise KeyError(key)
i = ord(index) - 97
for k, v in self.cache:
Show replies by date