Source

rope_py3k / rope / base / evaluate.py

Diff from to

rope/base/evaluate.py

         return primary, pyobject
 
     def _Subscript(self, node):
-        self._call_function(node.value, '__getitem__',
+        if isinstance(node.slice, ast.Index):
+            self._call_function(node.value, '__getitem__',
+                                [node.slice.value])
+        elif isinstance(node.slice, ast.Slice):
+            self._call_function(node.value, '__getitem__', 
                                 [node.slice])
 
     def _Slice(self, node):