Skip to content

Commit ff32720

Browse files
committed
replace abbreviated vars
1 parent feb5704 commit ff32720

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Python/chapter02/2.7 - Intersection/miguel_soln_2.7.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ def setUp(self):
207207

208208
self.intersection_test_cases = []
209209

210-
for ll1_seg1, ll1_seg2, shared_node, ll2 in shared_structures:
211-
ll1_seg1.append_to_tail(shared_node)
212-
ll1_seg1.append(ll1_seg2)
213-
ll2.append_to_tail(shared_node)
214-
self.intersection_test_cases.append((ll1_seg1, ll2, shared_node))
210+
for s in shared_structures:
211+
s.first_segment.append_to_tail(s.shared_node)
212+
s.first_segment.append(s.second_segment)
213+
s.other_list.append_to_tail(s.shared_node)
214+
self.intersection_test_cases.append((s.first_segment, s.other_list, s.shared_node))
215215

216216
self.no_intersection_test_cases = [
217217
(

0 commit comments

Comments
 (0)