From cdafcb0913ac238300521463436f03571ad9ae9e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 11 Mar 2021 20:52:27 -0500 Subject: refactor: pull module cleaning into here We don't need unittest_mixins' module cleaner anymore. --- coverage/backward.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'coverage/backward.py') diff --git a/coverage/backward.py b/coverage/backward.py index ac781ab9..779cd661 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -229,12 +229,6 @@ def format_local_datetime(dt): return dt.strftime('%Y-%m-%d %H:%M') -def invalidate_import_caches(): - """Invalidate any import caches that may or may not exist.""" - if importlib and hasattr(importlib, "invalidate_caches"): - importlib.invalidate_caches() - - def import_local_file(modname, modfile=None): """Import a local file as a module. -- cgit v1.2.1