diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-11-02 19:57:13 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-11-02 19:57:13 +0200 |
commit | 005e7842b73384e92b47b5556ec2e438bf4dbe99 (patch) | |
tree | f0de501e9738768c0ebedfb5086f464763c9051b /astroid/protocols.py | |
parent | 27c3b564f3be10fdb988e64d1899fdcb632d3404 (diff) | |
download | astroid-git-005e7842b73384e92b47b5556ec2e438bf4dbe99.tar.gz |
Move class_instance_as_index into interpreter.util
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r-- | astroid/protocols.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py index 51367da4..1d1da6e8 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -169,7 +169,7 @@ def tl_infer_binary_op(self, operator, other, context, method): yield _multiply_seq_by_int(self, other, context) elif isinstance(other, objects.Instance) and operator == '*': # Verify if the instance supports __index__. - as_index = helpers.class_instance_as_index(other) + as_index = inferenceutil.class_instance_as_index(other) if not as_index: yield util.YES else: |