Source

rope / rope / base / evaluate.py

The trunk branch has multiple heads

Diff from to

rope/base/evaluate.py

             self._get_object_for_node(node.left))
 
     def _BoolOp(self, node):
-        self.result = rope.base.pynames.UnboundName(
-            self._get_object_for_node(node.values[0]))
+        pyobject = self._get_object_for_node(node.values[0])
+        if pyobject is None:
+            pyobject = self._get_object_for_node(node.values[1])
+        self.result = rope.base.pynames.UnboundName(pyobject)
 
     def _Repr(self, node):
         self.result = self._get_builtin_name('str')