Skip to content

Commit

Permalink
Remove verbose parameter from namedtuple (fix for Python 3.8) (#641)
Browse files Browse the repository at this point in the history
Fixes #640
  • Loading branch information
facelessuser authored Nov 20, 2024
1 parent 3df5b7f commit a7027de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# BracketHighlighter

## 2.32.1

- **FIX**: Remove verbose parameter from named tubple which causes issues with Python 3.8.

## 2.32.0

- **NEW**: Opt in to Python 3.8.
Expand Down
2 changes: 1 addition & 1 deletion bh_modules/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def process_tag_pattern(pattern, variables=None):
return pattern


class TagEntry(namedtuple('TagEntry', ['begin', 'end', 'name', 'optional', 'single'], verbose=False)):
class TagEntry(namedtuple('TagEntry', ['begin', 'end', 'name', 'optional', 'single'])):
"""Tag entry tuple."""

def move(self, begin, end):
Expand Down
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "2.32.0"
__version__ = "2.32.1"
__pc_name__ = 'BracketHighlighter'

CSS = '''
Expand Down

0 comments on commit a7027de

Please sign in to comment.