diff --git a/drover/_copy_patch.py b/drover/_copy_patch.py new file mode 100644 index 0000000..78100ac --- /dev/null +++ b/drover/_copy_patch.py @@ -0,0 +1,8 @@ +"""Conditional patches for Python's `copy` module""" +import copy +import re +import sys + +if sys.version_info < (3, 7): + # See: + copy._deepcopy_dispatch[type(re.compile(''))] = lambda r, _: r # pylint: disable=protected-access