[distances] Remove some trailing spaces (related #128982)
authorSimon Chabot <simon.chabot@logilab.fr>
Wed, 17 Oct 2012 11:56:22 +0200
changeset 9 18faa981dea6
parent 8 fa36d8b3e6dd
child 10 9d29f8f854e9
[distances] Remove some trailing spaces (related #128982)
distances.py
--- a/distances.py	Wed Oct 17 11:56:04 2012 +0200
+++ b/distances.py	Wed Oct 17 11:56:22 2012 +0200
@@ -56,10 +56,8 @@
     else:
         raise NotImplementedError('Soundex code is not supported (yet ?) for'
                                   'this language')
-
     word = word.strip().upper()
     code = word[0]
-
     #After this ``for`` code is
     # the first letter of ``word`` followed by all the consonnants of word,
     # where from consecutive consonnants, only the first is kept,
@@ -75,8 +73,6 @@
            consonnantscode[word[i]] == consonnantscode.get(word[i + 2], ''):
             continue
         code += word[i]
-
-
     #Replace according to the codes
     code = code[0] + ''.join([consonnantscode[c] for c in code[1:]])
     ###First four letters, completed by zeros