Skip to content

Commit 3167897

Browse files
committed
Remove pre-3.9 fallback code
1 parent 9b34424 commit 3167897

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bpython/lazyre.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@
2121
# THE SOFTWARE.
2222

2323
import re
24-
from typing import Optional, Optional
2524
from collections.abc import Iterator
25+
from functools import cached_property
2626
from re import Pattern, Match
27-
28-
try:
29-
from functools import cached_property
30-
except ImportError:
31-
from backports.cached_property import cached_property # type: ignore [no-redef]
27+
from typing import Optional, Optional
3228

3329

3430
class LazyReCompile:

0 commit comments

Comments
 (0)