diff options
author | Bogdan B <buzea.bogdan@libreoffice.org> | 2023-01-01 11:27:55 +0100 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-01-02 09:37:00 +0000 |
commit | de419b94b3f7870e7ad962b1e7c8bf43b27f3d81 (patch) | |
tree | 402260aeaae8f87e0f4138c4662689fa00ac87d2 /pyuno | |
parent | cbf30153a5c776e6d1ee26f2f83c8f77503eceb9 (diff) |
Remove unused imports from pyuno/demo and pyuno/qa
Change-Id: I777eb19059030d2c1ce870b5839b541cbc7e90d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142520
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/demo/hello_world_comp.py | 1 | ||||
-rw-r--r-- | pyuno/demo/ooextract.py | 7 | ||||
-rw-r--r-- | pyuno/demo/swriter.py | 4 | ||||
-rw-r--r-- | pyuno/qa/pytests/insertremovecells.py | 3 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XCellRange.py | 2 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XEnumeration.py | 2 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XEnumerationAccess.py | 2 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XIndexAccess.py | 4 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XIndexReplace.py | 1 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XNameAccess.py | 2 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XNameContainer.py | 3 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_XNameReplace.py | 1 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_base.py | 1 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_misc.py | 2 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_misc2.py | 1 | ||||
-rw-r--r-- | pyuno/qa/pytests/testcollections_mixednameindex.py | 2 |
16 files changed, 5 insertions, 33 deletions
diff --git a/pyuno/demo/hello_world_comp.py b/pyuno/demo/hello_world_comp.py index 646a124a47b8..020953b4f41a 100644 --- a/pyuno/demo/hello_world_comp.py +++ b/pyuno/demo/hello_world_comp.py @@ -17,7 +17,6 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # -import uno import unohelper from com.sun.star.task import XJobExecutor diff --git a/pyuno/demo/ooextract.py b/pyuno/demo/ooextract.py index d6cce94e80d5..a5699548ce22 100644 --- a/pyuno/demo/ooextract.py +++ b/pyuno/demo/ooextract.py @@ -19,13 +19,12 @@ import getopt,sys import uno -from unohelper import Base,systemPathToFileUrl, absolutize -from os import getcwd +from unohelper import Base,systemPathToFileUrl +from os import getcwd from com.sun.star.beans import PropertyValue -from com.sun.star.beans.PropertyState import DIRECT_VALUE from com.sun.star.uno import Exception as UnoException -from com.sun.star.io import IOException,XInputStream, XOutputStream +from com.sun.star.io import IOException, XOutputStream class OutputStream(Base, XOutputStream): def __init__(self): diff --git a/pyuno/demo/swriter.py b/pyuno/demo/swriter.py index 90a53e826545..70af4f98d003 100644 --- a/pyuno/demo/swriter.py +++ b/pyuno/demo/swriter.py @@ -19,16 +19,12 @@ # bootstrap uno component context import uno -import unohelper - -from com.sun.star.lang import IllegalArgumentException # a UNO struct later needed to create a document from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK from com.sun.star.text.TextContentAnchorType import AS_CHARACTER from com.sun.star.awt import Size - def insertTextIntoCell( table, cellName, text, color ): tableText = table.getCellByName( cellName ) cursor = tableText.createTextCursor() diff --git a/pyuno/qa/pytests/insertremovecells.py b/pyuno/qa/pytests/insertremovecells.py index 1d850a65d9fd..2583fdb134c1 100644 --- a/pyuno/qa/pytests/insertremovecells.py +++ b/pyuno/qa/pytests/insertremovecells.py @@ -1,9 +1,6 @@ import pathlib -import re import unittest -from os import getenv, path - from org.libreoffice.unotest import pyuno, mkPropertyValue, makeCopyFromTDOC diff --git a/pyuno/qa/pytests/testcollections_XCellRange.py b/pyuno/qa/pytests/testcollections_XCellRange.py index 641482433375..6ab827ab3346 100644 --- a/pyuno/qa/pytests/testcollections_XCellRange.py +++ b/pyuno/qa/pytests/testcollections_XCellRange.py @@ -8,10 +8,8 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue from com.sun.star.table import CellAddress # TextTable instance factory diff --git a/pyuno/qa/pytests/testcollections_XEnumeration.py b/pyuno/qa/pytests/testcollections_XEnumeration.py index 8d1f8eece046..a12d30359658 100644 --- a/pyuno/qa/pytests/testcollections_XEnumeration.py +++ b/pyuno/qa/pytests/testcollections_XEnumeration.py @@ -8,10 +8,8 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue # Tests behaviour of objects implementing XEnumeration using the new-style diff --git a/pyuno/qa/pytests/testcollections_XEnumerationAccess.py b/pyuno/qa/pytests/testcollections_XEnumerationAccess.py index a62b05ce9c5f..385514ae77c5 100644 --- a/pyuno/qa/pytests/testcollections_XEnumerationAccess.py +++ b/pyuno/qa/pytests/testcollections_XEnumerationAccess.py @@ -8,10 +8,8 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue # Tests behaviour of objects implementing XEnumerationAccess using the new-style diff --git a/pyuno/qa/pytests/testcollections_XIndexAccess.py b/pyuno/qa/pytests/testcollections_XIndexAccess.py index e3eeb45cec96..ee668b7bfb4c 100644 --- a/pyuno/qa/pytests/testcollections_XIndexAccess.py +++ b/pyuno/qa/pytests/testcollections_XIndexAccess.py @@ -8,12 +8,10 @@ # import unittest -import uno from inspect import isclass - from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue + # Footnote instance factory def getFootnoteInstance(doc): diff --git a/pyuno/qa/pytests/testcollections_XIndexReplace.py b/pyuno/qa/pytests/testcollections_XIndexReplace.py index 78361cbcaaee..b2b2d2245750 100644 --- a/pyuno/qa/pytests/testcollections_XIndexReplace.py +++ b/pyuno/qa/pytests/testcollections_XIndexReplace.py @@ -11,7 +11,6 @@ import unittest import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue # ContentIndex instance factory diff --git a/pyuno/qa/pytests/testcollections_XNameAccess.py b/pyuno/qa/pytests/testcollections_XNameAccess.py index 498e17e28065..79d66a2e1bc2 100644 --- a/pyuno/qa/pytests/testcollections_XNameAccess.py +++ b/pyuno/qa/pytests/testcollections_XNameAccess.py @@ -8,10 +8,8 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue # Tests behaviour of objects implementing XNameAccess using the new-style diff --git a/pyuno/qa/pytests/testcollections_XNameContainer.py b/pyuno/qa/pytests/testcollections_XNameContainer.py index ac34049a79df..a02cf4d64899 100644 --- a/pyuno/qa/pytests/testcollections_XNameContainer.py +++ b/pyuno/qa/pytests/testcollections_XNameContainer.py @@ -8,10 +8,9 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue + # SheetCellRanges instance factory def getSheetCellRangesInstance(spr): diff --git a/pyuno/qa/pytests/testcollections_XNameReplace.py b/pyuno/qa/pytests/testcollections_XNameReplace.py index 18476fd2b447..a0be04404f09 100644 --- a/pyuno/qa/pytests/testcollections_XNameReplace.py +++ b/pyuno/qa/pytests/testcollections_XNameReplace.py @@ -8,7 +8,6 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase from com.sun.star.beans import PropertyValue diff --git a/pyuno/qa/pytests/testcollections_base.py b/pyuno/qa/pytests/testcollections_base.py index d3e8068820cf..4dd3f26ea059 100644 --- a/pyuno/qa/pytests/testcollections_base.py +++ b/pyuno/qa/pytests/testcollections_base.py @@ -8,7 +8,6 @@ # import unittest -import uno from org.libreoffice.unotest import pyuno from com.sun.star.beans import PropertyValue diff --git a/pyuno/qa/pytests/testcollections_misc.py b/pyuno/qa/pytests/testcollections_misc.py index 1dba098eeccd..7ca40de1f7ad 100644 --- a/pyuno/qa/pytests/testcollections_misc.py +++ b/pyuno/qa/pytests/testcollections_misc.py @@ -8,10 +8,8 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue # Miscellaneous tests of the behaviour of UNO objects using the new-style diff --git a/pyuno/qa/pytests/testcollections_misc2.py b/pyuno/qa/pytests/testcollections_misc2.py index b696e050a53d..86bb544eaccf 100644 --- a/pyuno/qa/pytests/testcollections_misc2.py +++ b/pyuno/qa/pytests/testcollections_misc2.py @@ -2,7 +2,6 @@ # execute run procedure as Python macro for testing import uno -import sys import unittest from com.sun.star.awt.FontSlant import ITALIC diff --git a/pyuno/qa/pytests/testcollections_mixednameindex.py b/pyuno/qa/pytests/testcollections_mixednameindex.py index b4c7958c6996..c363c0ca70b8 100644 --- a/pyuno/qa/pytests/testcollections_mixednameindex.py +++ b/pyuno/qa/pytests/testcollections_mixednameindex.py @@ -8,10 +8,8 @@ # import unittest -import uno from testcollections_base import CollectionsTestBase -from com.sun.star.beans import PropertyValue # Tests behaviour of objects implementing both XIndexAccess and XNameAccess |