diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-11 20:52:27 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-11 20:52:27 -0500 |
commit | cdafcb0913ac238300521463436f03571ad9ae9e (patch) | |
tree | b85192e002f9eb7f0b1ada9df1808b7b26f48d1d /coverage/backward.py | |
parent | 1d83d59ffacd0736411e492786f83953d247819f (diff) | |
download | python-coveragepy-git-cdafcb0913ac238300521463436f03571ad9ae9e.tar.gz |
refactor: pull module cleaning into here
We don't need unittest_mixins' module cleaner anymore.
Diffstat (limited to 'coverage/backward.py')
-rw-r--r-- | coverage/backward.py | 6 |
1 files changed, 0 insertions, 6 deletions
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. |