Skip to content

Commit

Permalink
spell_correction.py 1.1: fix SyntaxWarning with Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
weechatter authored and flashcode committed Jul 21, 2024
1 parent a245f24 commit 8f0d7be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions python/spell_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# 2024-07-20: nils_2, (libera.#weechat)
# 1.1 : fix SyntaxWarning with Python 3.12 (akyag)
#
# 2019-07-16: nils_2, (freenode.#weechat)
# 1.0 : fix bug when misspelled word don't have a suggestion (rafasc)
# : fixed typo in /help text
Expand Down Expand Up @@ -78,7 +81,7 @@

SCRIPT_NAME = "spell_correction"
SCRIPT_AUTHOR = "nils_2 <[email protected]>"
SCRIPT_VERSION = "1.0"
SCRIPT_VERSION = "1.1"
SCRIPT_LICENSE = "GPL"
SCRIPT_DESC = "a spell correction script to use with spell/aspell plugin"

Expand All @@ -93,8 +96,8 @@
}

Hooks = {'catch_input_completion': '', 'catch_input_return': ''}
regex_color=re.compile('\$\{([^\{\}]+)\}')
regex_optional_tags=re.compile('%\{[^\{\}]+\}')
regex_color=re.compile(r'\$\{([^\{\}]+)\}')
regex_optional_tags=re.compile(r'%\{[^\{\}]+\}')
multiline_input = 0
plugin_name = "spell" # WeeChat >= 2.5
old_plugin_name = "aspell" # WeeChat < 2.5
Expand Down

0 comments on commit 8f0d7be

Please sign in to comment.