diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-28 16:14:23 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-28 18:53:39 +0200 |
commit | eff9495b70722d8e590e97b1710cfc7c00f6ce72 (patch) | |
tree | a804cdfe1347a30b35839e288f20cc7ac845e6e6 | |
parent | 54a753654845ecd253d7af7693bbcfbc9d952716 (diff) |
Lightproof: undo some import order changes advised by Ruff linter
Change-Id: Iec2b9a1ed9bf2f9a41dc098fcf6ee8026917e3a3
Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/171140
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
-rw-r--r-- | en/pythonpath/lightproof_impl_en.py | 3 | ||||
-rw-r--r-- | hu_HU/pythonpath/lightproof_impl_hu_HU.py | 3 | ||||
-rw-r--r-- | pt_BR/Lightproof.py | 7 | ||||
-rw-r--r-- | pt_BR/pythonpath/lightproof_impl_pt_BR.py | 3 | ||||
-rw-r--r-- | ru_RU/pythonpath/lightproof_impl_ru_RU.py | 3 |
5 files changed, 12 insertions, 7 deletions
diff --git a/en/pythonpath/lightproof_impl_en.py b/en/pythonpath/lightproof_impl_en.py index bd8b1c1..9700fbe 100644 --- a/en/pythonpath/lightproof_impl_en.py +++ b/en/pythonpath/lightproof_impl_en.py @@ -4,7 +4,6 @@ import re import sys import os import traceback -import lightproof_handler_en from com.sun.star.text.TextMarkupType import PROOFREADING from com.sun.star.beans import PropertyValue @@ -15,6 +14,8 @@ version = "0.4.3" author = "László Németh" name = "Lightproof grammar checker (English)" +import lightproof_handler_en + # loaded rules (check for Update mechanism of the editor) try: langrule diff --git a/hu_HU/pythonpath/lightproof_impl_hu_HU.py b/hu_HU/pythonpath/lightproof_impl_hu_HU.py index 27dfabc..ff5048d 100644 --- a/hu_HU/pythonpath/lightproof_impl_hu_HU.py +++ b/hu_HU/pythonpath/lightproof_impl_hu_HU.py @@ -5,7 +5,6 @@ import re import sys import os import traceback -import lightproof_handler_hu_HU from com.sun.star.text.TextMarkupType import PROOFREADING from com.sun.star.beans import PropertyValue @@ -16,6 +15,8 @@ version = "1.6.4" author = "László Németh" name = "Lightproof grammar checker (magyar)" +import lightproof_handler_hu_HU + # loaded rules (check for Update mechanism of the editor) try: langrule diff --git a/pt_BR/Lightproof.py b/pt_BR/Lightproof.py index adb939c..012c5e7 100644 --- a/pt_BR/Lightproof.py +++ b/pt_BR/Lightproof.py @@ -6,6 +6,10 @@ import uno import unohelper import os import traceback + +locales = {'pt-BR': ['pt', 'BR', '']} +pkg = "pt_BR" + import lightproof_handler_pt_BR from com.sun.star.linguistic2 import XProofreader, XSupportedLocales from com.sun.star.linguistic2 import ProofreadingResult, SingleProofreadingError @@ -17,9 +21,6 @@ try: except Exception: pass -locales = {'pt-BR': ['pt', 'BR', '']} -pkg = "pt_BR" - class Lightproof( unohelper.Base, XProofreader, XServiceInfo, XServiceName, XServiceDisplayName, XSupportedLocales): def __init__( self, ctx, *args ): diff --git a/pt_BR/pythonpath/lightproof_impl_pt_BR.py b/pt_BR/pythonpath/lightproof_impl_pt_BR.py index bcf8bbc..7c5bf2a 100644 --- a/pt_BR/pythonpath/lightproof_impl_pt_BR.py +++ b/pt_BR/pythonpath/lightproof_impl_pt_BR.py @@ -5,7 +5,6 @@ import re import sys import os import traceback -import lightproof_handler_pt_BR from com.sun.star.text.TextMarkupType import PROOFREADING from com.sun.star.beans import PropertyValue @@ -16,6 +15,8 @@ version = "0.4.3" author = "Raimundo Santos Moura" name = "Lightproof grammar checker (Portuguese Brazilian)" +import lightproof_handler_pt_BR + # loaded rules (check for Update mechanism of the editor) try: langrule diff --git a/ru_RU/pythonpath/lightproof_impl_ru_RU.py b/ru_RU/pythonpath/lightproof_impl_ru_RU.py index 5a67e72..ec096a9 100644 --- a/ru_RU/pythonpath/lightproof_impl_ru_RU.py +++ b/ru_RU/pythonpath/lightproof_impl_ru_RU.py @@ -4,7 +4,6 @@ import re import sys import os import traceback -import lightproof_handler_ru_RU from com.sun.star.text.TextMarkupType import PROOFREADING from com.sun.star.beans import PropertyValue @@ -15,6 +14,8 @@ version = "0.3.4" author = "Yakov Reztsov <yr at myooo dot ru>" name = "Lightproof grammar checker (Russian)" +import lightproof_handler_ru_RU + # loaded rules (check for Update mechanism of the editor) try: langrule |