[Libreoffice-commits] .: ru_RU/pythonpath

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Dec 3 08:35:53 PST 2012


 ru_RU/pythonpath/lightproof_impl_ru_RU.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 1595bf11e295d96123fcb327ba9919307aa5b127
Author: László Németh <nemeth at numbertext.org>
Date:   Mon Dec 3 17:35:07 2012 +0100

    Python 3 port of ru-RU grammar checker

diff --git a/ru_RU/pythonpath/lightproof_impl_ru_RU.py b/ru_RU/pythonpath/lightproof_impl_ru_RU.py
index 68e8f56..0537d24 100644
--- a/ru_RU/pythonpath/lightproof_impl_ru_RU.py
+++ b/ru_RU/pythonpath/lightproof_impl_ru_RU.py
@@ -1,6 +1,5 @@
 # -*- encoding: UTF-8 -*-
 import uno, re, sys, os, traceback
-from string import join
 from com.sun.star.text.TextMarkupType import PROOFREADING
 from com.sun.star.beans import PropertyValue
 
@@ -119,7 +118,7 @@ def suggest(rLoc, word):
         if not x:
             return word
         t = x.getAlternatives()
-        suggestions[word] = join(t, "\\n")
+        suggestions[word] = "\\n".join(t)
     return suggestions[word]
 
 # get the nth word of the input string or None


More information about the Libreoffice-commits mailing list