From cd49038ebfeb476ec9665177eeeb0d8845b7ca4f Mon Sep 17 00:00:00 2001 From: Joachim Metz Date: Sun, 28 Jan 2024 13:54:38 +0100 Subject: [PATCH] Changes to use docformatter --- dfvfs/helpers/file_system_searcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dfvfs/helpers/file_system_searcher.py b/dfvfs/helpers/file_system_searcher.py index f7c2cabe..64ec37c9 100644 --- a/dfvfs/helpers/file_system_searcher.py +++ b/dfvfs/helpers/file_system_searcher.py @@ -3,7 +3,10 @@ import re -import re._constants as sre_constants +try: + import re._constants as sre_constants +except ImportError: + import sre_constants # pylint: disable=deprecated-module from dfvfs.lib import definitions from dfvfs.lib import errors