diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-01-10 23:06:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 23:06:30 +0100 |
commit | f3ece3f3a97ca8905f57f024de3b7d037b6da0f8 (patch) | |
tree | ee5aa51dafc44a6e6b1299b0dc50f4cbf7c70458 /pylint/utils/utils.py | |
parent | 3ad42a05634d6913f57c7d65741bdbdb7b1ffc48 (diff) | |
download | pylint-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.py | 4 |
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() |