Skip to content

Commit

Permalink
re.NOFLAG in cpy3.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLilit committed Sep 6, 2022
1 parent a6f88c0 commit b91f8a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
Pattern,
RegexFlag,
)

try:
# added in Python 3.11
from re import NOFLAG # type: ignore
except ImportError:
NOFLAG = 0

import os
import sys
import traceback
Expand Down

0 comments on commit b91f8a6

Please sign in to comment.