From 72600a425137d1b1fd1dc9fe628e3125bdcacdea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=CC=B7N=CC=B7?= <6h8fn1zo@duck.com> Date: Sat, 10 Jun 2023 08:06:37 +0700 Subject: [PATCH] Fix deprecated sre_constants sre_constants is deprecated in favor of re. --- src/nohang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nohang b/src/nohang index cbb968b..dfb7df8 100755 --- a/src/nohang +++ b/src/nohang @@ -7,7 +7,7 @@ from time import sleep, monotonic from operator import itemgetter from sys import stdout, stderr, argv, exit 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