diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-08-20 09:30:50 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-08-30 18:27:45 +0200 |
commit | 8267d0913aa920321f656ee21462ff3cd4660515 (patch) | |
tree | 4f709adb52e28cf5587554b3342da8544aa7cdd6 /astroid/transforms.py | |
parent | 466a27d46b603b6010a19dbd53b72c95b4fca6cb (diff) | |
download | astroid-git-8267d0913aa920321f656ee21462ff3cd4660515.tar.gz |
astroid.context: import object one by one instead of the entire module
Diffstat (limited to 'astroid/transforms.py')
-rw-r--r-- | astroid/transforms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/transforms.py b/astroid/transforms.py index bc4486b5..42d06160 100644 --- a/astroid/transforms.py +++ b/astroid/transforms.py @@ -13,7 +13,7 @@ import collections from functools import lru_cache -from astroid import context as contextmod +from astroid.context import _invalidate_cache class TransformVisitor: @@ -47,7 +47,7 @@ class TransformVisitor: # if the transformation function returns something, it's # expected to be a replacement for the node if ret is not None: - contextmod._invalidate_cache() + _invalidate_cache() node = ret if ret.__class__ != cls: # Can no longer apply the rest of the transforms. |