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