From 1595bf11e295d96123fcb327ba9919307aa5b127 Mon Sep 17 00:00:00 2001 From: László Németh Date: Mon, 3 Dec 2012 17:35:07 +0100 Subject: Python 3 port of ru-RU grammar checker --- ru_RU/pythonpath/lightproof_impl_ru_RU.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ru_RU') 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 -- cgit