summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-10-22 21:00:43 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2015-10-22 21:00:43 +0100
commit6146e38d1ed236427d61bfd13c097cd3d29cd017 (patch)
treee77d8905f6b93fe547a6380fa7f730bb399947a4
parentc8b506f61facc24a1dd28f1421f0393d9775527f (diff)
downloadastroid-git-6146e38d1ed236427d61bfd13c097cd3d29cd017.tar.gz
Make class_as_index private.
-rw-r--r--astroid/protocols.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 21f0c295..76e404d7 100644
--- a/astroid/protocols.py
+++ b/astroid/protocols.py
@@ -164,7 +164,7 @@ def tl_infer_binary_op(self, operator, other, context, method):
yield _multiply_seq_by_int(self, other, context)
elif isinstance(other, bases.Instance) and operator == '*':
# Verify if the instance supports __index__.
- as_index = class_as_index(other, context)
+ as_index = _class_as_index(other, context)
if not as_index:
yield util.YES
else:
@@ -518,7 +518,7 @@ def starred_assigned_stmts(self, node=None, context=None, asspath=None):
nodes.Starred.assigned_stmts = starred_assigned_stmts
-def class_as_index(node, context):
+def _class_as_index(node, context):
"""Get the value as an index for the given node
It is expected that the node is an Instance. If it provides