summaryrefslogtreecommitdiff
path: root/pylint/utils/utils.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-01-10 23:06:30 +0100
committerGitHub <noreply@github.com>2022-01-10 23:06:30 +0100
commitf3ece3f3a97ca8905f57f024de3b7d037b6da0f8 (patch)
treeee5aa51dafc44a6e6b1299b0dc50f4cbf7c70458 /pylint/utils/utils.py
parent3ad42a05634d6913f57c7d65741bdbdb7b1ffc48 (diff)
downloadpylint-git-f3ece3f3a97ca8905f57f024de3b7d037b6da0f8.tar.gz
Add ``future=True`` to all ``NodeNG.frame`` calls (#5621)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r--pylint/utils/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py
index e84ffa472..f99690b33 100644
--- a/pylint/utils/utils.py
+++ b/pylint/utils/utils.py
@@ -108,7 +108,7 @@ def diff_string(old, new):
def get_module_and_frameid(node):
"""return the module name and the frame id in the module"""
- frame = node.frame()
+ frame = node.frame(future=True)
module, obj = "", []
while frame:
if isinstance(frame, Module):
@@ -116,7 +116,7 @@ def get_module_and_frameid(node):
else:
obj.append(getattr(frame, "name", "<lambda>"))
try:
- frame = frame.parent.frame()
+ frame = frame.parent.frame(future=True)
except AttributeError:
break
obj.reverse()