Skip to content

Commit

Permalink
Fix bpt: None property (#66)
Browse files Browse the repository at this point in the history
Ref #65
  • Loading branch information
facelessuser authored Feb 26, 2018
1 parent 64fb801 commit 3de1ff5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backrefs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Backrefs package."""

# (major, minor, micro, release type, pre-release build, post-release build)
version_info = (3, 2, 0, 'final', 0, 0)
version_info = (3, 2, 1, 'final', 0, 0)


def _version():
Expand Down
6 changes: 6 additions & 0 deletions docs/src/markdown/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 3.2.1

Feb 26, 2018

- **FIX**: `Bidi_Paired_Bracket_type` property's `None` value should be equivalent to all characters that are not `open` or `close` characters.

## 3.2.0

Feb 25, 2018
Expand Down
4 changes: 3 additions & 1 deletion tools/unipropgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def gen_bidi(output, ascii_props=False, append=False, prefix=""):
def gen_bidi_paired_bracket_type(output, ascii_props=False, append=False, prefix=''):
"""Generate bide paired bracket type properties."""

bpt_class = {'n': []}
bpt_class = {}
max_range = MAXASCII if ascii_props else MAXUNICODE
with open(os.path.join(HOME, 'unicodedata', UNIVERSION, 'BidiBrackets.txt'), 'r') as uf:
for line in uf:
Expand All @@ -704,6 +704,8 @@ def gen_bidi_paired_bracket_type(output, ascii_props=False, append=False, prefix
s = set(bpt_class[name])
bpt_class[name] = sorted(s)

not_explicitly_defined(bpt_class, 'n', binary=ascii_props)

# Convert characters values to ranges
char2range(bpt_class, binary=ascii_props)

Expand Down

0 comments on commit 3de1ff5

Please sign in to comment.