[kupfer] relevance: Module docstring has to be at the top.



commit de0348c23093ff8126fb07945947cd3b4afb462f
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Sep 14 14:27:29 2009 +0200

    relevance: Module docstring has to be at the top.
    
    Also tweak the docstring when we're at it

 kupfer/relevance.py |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/kupfer/relevance.py b/kupfer/relevance.py
index c04ccdd..93b2bab 100644
--- a/kupfer/relevance.py
+++ b/kupfer/relevance.py
@@ -20,17 +20,19 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import division
-
 """
 This module provides relevance matching and formatting of related strings
 based on the relevance.  It originates in Gnome-Do.
 
-Module updated by Ulrik to use python unicode functions, proper python
-idoms and looping, replacing costly operations in python with better ones,
-all to clean up and dramatically speed up the code.
+ * Python port by Christian Hergert
+
+ * Module updated by Ulrik Sverdrup to clean up and dramatically speed up
+   the code, by using more pythonic constructs as well as doing less work.
 """
 
+from __future__ import division
+
+
 def formatCommonSubstrings(s, query, format_clean=None, format_match=None):
     """
     Creates a new string highlighting matching substrings.



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