summaryrefslogtreecommitdiff
path: root/astroid
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
commit6c250a70175892cdd6ad1e84d071197e1ba4e56b (patch)
treeee3697fa7b7ff0fbaff10ae53b009147a66c1449 /astroid
parent4920076bfe852de098578034cfe56e8ef0ef96bf (diff)
downloadastroid-6c250a70175892cdd6ad1e84d071197e1ba4e56b.tar.gz
Make class_as_index private.
Diffstat (limited to 'astroid')
-rw-r--r--astroid/protocols.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py
index 21f0c29..76e404d 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