Show More
@@ -124,9 +124,10 b' class PickleShareDB(UserDict.DictMixin):' | |||||
124 | def hdict(self, hashroot): |
|
124 | def hdict(self, hashroot): | |
125 | """ Get all data contained in hashed category 'hashroot' as dict """ |
|
125 | """ Get all data contained in hashed category 'hashroot' as dict """ | |
126 | hfiles = self.keys(hashroot + "/*") |
|
126 | hfiles = self.keys(hashroot + "/*") | |
|
127 | hfiles.sort() | |||
127 | last = len(hfiles) and hfiles[-1] or '' |
|
128 | last = len(hfiles) and hfiles[-1] or '' | |
128 | if last.endswith('xx'): |
|
129 | if last.endswith('xx'): | |
129 | print "using xx" |
|
130 | # print "using xx" | |
130 | hfiles = [last] + hfiles[:-1] |
|
131 | hfiles = [last] + hfiles[:-1] | |
131 |
|
132 | |||
132 | all = {} |
|
133 | all = {} |
General Comments 0
You need to be logged in to leave comments.
Login now