Skip to content

Commit 8f0d7be

Browse files
weechatterflashcode
authored andcommitted
spell_correction.py 1.1: fix SyntaxWarning with Python 3.12
1 parent a245f24 commit 8f0d7be

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

python/spell_correction.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
#
20+
# 2024-07-20: nils_2, (libera.#weechat)
21+
# 1.1 : fix SyntaxWarning with Python 3.12 (akyag)
22+
#
2023
# 2019-07-16: nils_2, (freenode.#weechat)
2124
# 1.0 : fix bug when misspelled word don't have a suggestion (rafasc)
2225
# : fixed typo in /help text
@@ -78,7 +81,7 @@
7881

7982
SCRIPT_NAME = "spell_correction"
8083
SCRIPT_AUTHOR = "nils_2 <[email protected]>"
81-
SCRIPT_VERSION = "1.0"
84+
SCRIPT_VERSION = "1.1"
8285
SCRIPT_LICENSE = "GPL"
8386
SCRIPT_DESC = "a spell correction script to use with spell/aspell plugin"
8487

@@ -93,8 +96,8 @@
9396
}
9497

9598
Hooks = {'catch_input_completion': '', 'catch_input_return': ''}
96-
regex_color=re.compile('\$\{([^\{\}]+)\}')
97-
regex_optional_tags=re.compile('%\{[^\{\}]+\}')
99+
regex_color=re.compile(r'\$\{([^\{\}]+)\}')
100+
regex_optional_tags=re.compile(r'%\{[^\{\}]+\}')
98101
multiline_input = 0
99102
plugin_name = "spell" # WeeChat >= 2.5
100103
old_plugin_name = "aspell" # WeeChat < 2.5

0 commit comments

Comments
 (0)