From 657ae189564245e56e5d796d56bf8f65bdec36b3 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Mon, 30 Sep 2024 14:10:26 -0600 Subject: [PATCH] Fix re replace issue (#468) * Fix re replace issue Fixes #467 * Re-generate docs * Bump version --- docs/src/markdown/about/changelog.md | 4 + docs/src/markdown/preferences.md | 4 +- docs/src/markdown/usage.md | 2 +- rummage/lib/__meta__.py | 2 +- rummage/lib/gui/controls/custom_statusbar.py | 2 +- rummage/lib/gui/controls/dynamic_lists.py | 2 +- rummage/lib/gui/controls/result_lists.py | 2 +- rummage/lib/gui/data/docs/.dochash | 2 +- .../lib/gui/data/docs/about/changelog.html | 4 + rummage/lib/gui/data/docs/preferences.html | 4 +- rummage/lib/gui/data/docs/usage.html | 2 +- rummage/lib/gui/dialogs/rummage_dialog.py | 2 +- rummage/lib/gui/util/colors.py | 2 +- rummage/lib/rumcore/__init__.py | 12 +- tests/test_rumcore.py | 131 ++++++++++++++++++ 15 files changed, 154 insertions(+), 23 deletions(-) diff --git a/docs/src/markdown/about/changelog.md b/docs/src/markdown/about/changelog.md index db5cc6d7..d9833ab7 100644 --- a/docs/src/markdown/about/changelog.md +++ b/docs/src/markdown/about/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 4.21.1 + +- **FIX**: Fix issue with `re` replace in Python 3.12 and Python 3.13. + ## 4.21 - **NEW**: Officially support Python 3.12 and Python 3.13, requires latest wxPython (4.2.2). diff --git a/docs/src/markdown/preferences.md b/docs/src/markdown/preferences.md index 0f698fb9..6dc0e76b 100644 --- a/docs/src/markdown/preferences.md +++ b/docs/src/markdown/preferences.md @@ -15,8 +15,8 @@ The **General** tab contains a couple of useful settings. Single Instance - By default, Rummage will allow for multiple windows to be open. If this option is enabled, the first window will be - be the only window to open. All subsequent instances will pass their arguments to the first and close without - showing a window. + the only window to open. All subsequent instances will pass their arguments to the first and close without showing + a window. Language diff --git a/docs/src/markdown/usage.md b/docs/src/markdown/usage.md index 395e5c45..4c271e68 100755 --- a/docs/src/markdown/usage.md +++ b/docs/src/markdown/usage.md @@ -108,7 +108,7 @@ options. /// tip | Column Options You can hide/show columns by right clicking the list header to get a special context menu. You can then deselect or -select the the column(s) you wish to hide/show respectively. You can also reorder the columns if desired. +select the column(s) you wish to hide/show respectively. You can also reorder the columns if desired. /// ## Regular Expression Tester diff --git a/rummage/lib/__meta__.py b/rummage/lib/__meta__.py index b0718397..73728348 100644 --- a/rummage/lib/__meta__.py +++ b/rummage/lib/__meta__.py @@ -189,7 +189,7 @@ def parse_version(ver): # (major, minor, micro, release type, pre-release build, post-release build, development-release) -__version_info__ = Version(4, 21, 0, 'final') +__version_info__ = Version(4, 21, 1, 'final') __version__ = __version_info__._get_canonical() __app__ = "Rummage" __status__ = __version_info__[3] diff --git a/rummage/lib/gui/controls/custom_statusbar.py b/rummage/lib/gui/controls/custom_statusbar.py index 8377639d..f16ddd97 100644 --- a/rummage/lib/gui/controls/custom_statusbar.py +++ b/rummage/lib/gui/controls/custom_statusbar.py @@ -29,7 +29,7 @@ class ContextMenu(wx.Menu): """Context Menu.""" def __init__(self, menu): - """Attach the context menu to to the parent with the defined items.""" + """Attach the context menu to the parent with the defined items.""" wx.Menu.__init__(self) self._callbacks = {} diff --git a/rummage/lib/gui/controls/dynamic_lists.py b/rummage/lib/gui/controls/dynamic_lists.py index 644e368f..ec4221a1 100644 --- a/rummage/lib/gui/controls/dynamic_lists.py +++ b/rummage/lib/gui/controls/dynamic_lists.py @@ -298,7 +298,7 @@ def set_item_map(self, idx, *args): self.size_sample -= 1 def get_map_item(self, idx, col=0, absolute=False): - """Get attribute in in item map entry and the given index.""" + """Get attribute in item map entry and the given index.""" return self.itemDataMap[self.itemIndexMap[idx] if not absolute else idx][self.get_real_col(col)] diff --git a/rummage/lib/gui/controls/result_lists.py b/rummage/lib/gui/controls/result_lists.py index 7aecef7b..2a35004a 100644 --- a/rummage/lib/gui/controls/result_lists.py +++ b/rummage/lib/gui/controls/result_lists.py @@ -64,7 +64,7 @@ class ContextMenu(wx.Menu): """Context Menu.""" def __init__(self, menu): - """Attach the context menu to to the parent with the defined items.""" + """Attach the context menu to the parent with the defined items.""" wx.Menu.__init__(self) self.create_menu(self, menu) diff --git a/rummage/lib/gui/data/docs/.dochash b/rummage/lib/gui/data/docs/.dochash index 5ce7eb7b..799c3516 100644 --- a/rummage/lib/gui/data/docs/.dochash +++ b/rummage/lib/gui/data/docs/.dochash @@ -1 +1 @@ -0cd58713b67eafdcd920f80223baa5dc \ No newline at end of file +ff7edfad8ee90d27d9cbc711c759338c \ No newline at end of file diff --git a/rummage/lib/gui/data/docs/about/changelog.html b/rummage/lib/gui/data/docs/about/changelog.html index 338bb707..3d3a1746 100644 --- a/rummage/lib/gui/data/docs/about/changelog.html +++ b/rummage/lib/gui/data/docs/about/changelog.html @@ -25,6 +25,10 @@

Changelog

+

4.21.1

+

4.21