diff options
author | Chenxiong Qi <qcxhome@gmail.com> | 2023-12-17 22:14:09 +0800 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-12-27 13:48:47 +0100 |
commit | 8b6e0dd9e47c20a79fd194f6d530d1c868911bda (patch) | |
tree | 9ebad0a155cf126fe6fde2b892bb164aaf914000 /sc | |
parent | 7ad6ae594fd92b736b4217268eea47c71c04c34a (diff) |
tdf#158803 Fix issues detected by pyflakes
Change-Id: Iaa329dff61db894e7d5fecd840e785a53a48b26f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160889
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/uitest/calc_tests4/trackedChanges.py | 2 | ||||
-rw-r--r-- | sc/workben/cache.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/qa/uitest/calc_tests4/trackedChanges.py b/sc/qa/uitest/calc_tests4/trackedChanges.py index 0f38f9f3042c..5ad8c3f3a9d2 100644 --- a/sc/qa/uitest/calc_tests4/trackedChanges.py +++ b/sc/qa/uitest/calc_tests4/trackedChanges.py @@ -96,7 +96,7 @@ class CalcTrackedChanges(UITestCase): def test_Tdf153096(self): - with self.ui_test.create_doc_in_start_center("calc") as document: + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.wait_until_child_is_available("grid_window") xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/workben/cache.py b/sc/workben/cache.py index ba96abe9758b..982d80c510d3 100644 --- a/sc/workben/cache.py +++ b/sc/workben/cache.py @@ -51,7 +51,8 @@ def parse_block(data, index): def parse_column(data, index): - column_index = struct.unpack('Q', data[index:index+8])[0] + # get the column index + struct.unpack('Q', data[index:index+8])[0] index += 8 column_entries = struct.unpack('Q', data[index:index+8])[0] index += 8 |