summaryrefslogtreecommitdiff
path: root/pyuno/demo
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-07-27 18:01:30 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-07-27 18:52:48 +0200
commit2c3bf9471d779ea40112a3ae70eec40eaf57cf6f (patch)
treeceb094a2533e9723ba9a6c9fad7d35a1e6f3d7c5 /pyuno/demo
parent4d18fa7694bae0b3d4364aa3072216782b7a5f26 (diff)
odk, oox, pyuno: fix issues found by Ruff linter
Change-Id: I79d56453877a10502768b522ca93da3990891c0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171098 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'pyuno/demo')
-rw-r--r--pyuno/demo/biblioaccess.py4
-rw-r--r--pyuno/demo/ooextract.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/pyuno/demo/biblioaccess.py b/pyuno/demo/biblioaccess.py
index 0e5d0b4c8071..5ad5a2625f01 100644
--- a/pyuno/demo/biblioaccess.py
+++ b/pyuno/demo/biblioaccess.py
@@ -37,7 +37,7 @@ def main():
rowset.CommandType = COMMAND
rowset.Command = "SELECT IDENTIFIER, AUTHOR FROM biblio"
- rowset.execute();
+ rowset.execute()
print("Identifier\tAuthor")
@@ -46,7 +46,7 @@ def main():
while rowset.next():
print(rowset.getString(id) + "\t" + repr(rowset.getString(author)))
- rowset.dispose();
+ rowset.dispose()
main()
diff --git a/pyuno/demo/ooextract.py b/pyuno/demo/ooextract.py
index 0aec00f43a47..e93b169a8273 100644
--- a/pyuno/demo/ooextract.py
+++ b/pyuno/demo/ooextract.py
@@ -17,7 +17,8 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-import getopt,sys
+import getopt
+import sys
import uno
from unohelper import Base,systemPathToFileUrl