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/demo | |
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/demo')
-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 |
3 files changed, 3 insertions, 9 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() |