File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Changed
11+
12+ - Use ` re ` submodules instead of ` sre_parse ` and ` sre_constants ` ([ #61 ] ( https://github.com/dlint-py/dlint/issues/61 ) )
13+
1014## [ 0.16.0] - 2024-10-31
1115
1216### Added
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3- import sre_constants
4- import sre_parse
5-
63import collections
74import itertools
85import sys
96
7+ if sys .version_info >= (3 , 11 ):
8+ import re ._constants as sre_constants
9+ import re ._parser as sre_parse
10+ else :
11+ import sre_constants
12+ import sre_parse
13+
1014CR = collections .namedtuple ('CR' , ['cr_min' , 'cr_max' ])
1115
1216CATEGORY_TO_RANGE = {
You can’t perform that action at this time.
0 commit comments