changeset 454:349f48dd47e9

there is no protocol 3 for pickle, use protocol 2 in word search
author Radomir Dopieralski <moindev@sheep.art.pl>
date Sun, 03 Aug 2008 18:23:31 +0200
parents a767808a9fbc
children 67401ec815b9
files dandelion/word_search.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dandelion/word_search.py	Sun Aug 03 18:21:47 2008 +0200
+++ b/dandelion/word_search.py	Sun Aug 03 18:23:31 2008 +0200
@@ -91,7 +91,7 @@
 class SearchIndex(object):
     def __init__(self, filename):
         self.filename = filename
-        self.index = shelve.open(filename + ".words", protocol=3)
+        self.index = shelve.open(filename + ".words", protocol=2)
         try:
             f = open(filename + ".titles", "rb")
             self.titles = cPickle.load(f)