Fix deprecated sre_constants

sre_constants is deprecated in favor of re.
This commit is contained in:
F̷N̷ 2023-06-10 08:06:37 +07:00 committed by GitHub
parent c9bfdf391f
commit 72600a4251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ from time import sleep, monotonic
from operator import itemgetter from operator import itemgetter
from sys import stdout, stderr, argv, exit from sys import stdout, stderr, argv, exit
from re import search from re import search
from sre_constants import error as invalid_re from re import error as invalid_re
from signal import signal, SIGKILL, SIGTERM, SIGINT, SIGQUIT, SIGHUP, SIGUSR1 from signal import signal, SIGKILL, SIGTERM, SIGINT, SIGQUIT, SIGHUP, SIGUSR1