[kupfer] search: Remove locale functions



commit c0440161acc7b44ada3e4658909d6ee1c66e410a
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Sep 11 13:28:39 2009 +0200

    search: Remove locale functions
    
    These are not needed or handled here

 kupfer/search.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/kupfer/search.py b/kupfer/search.py
index 22d950c..cf92df4 100644
--- a/kupfer/search.py
+++ b/kupfer/search.py
@@ -1,7 +1,5 @@
 # -*- coding: UTF-8 -*-
 
-import locale
-
 from kupfer import learn
 from kupfer.relevance import score
 
@@ -11,10 +9,6 @@ def make_rankables(itr, rank=0):
 def wrap_rankable(obj, rank=0):
 	return Rankable(unicode(obj), obj, rank)
 
-def locale_rankable_cmp(me, other):
-	p1 = -cmp(me.rank, other.rank)
-	return p1 or (me.rank and locale.strcoll(me.value, other.value))
-
 class Rankable (object):
 	"""
 	Rankable has an object (represented item),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]