Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 2d7fda7

Browse files
author
Matthias Koeppe
committed
src/sage/manifolds/subset.py: Simplify code more to make pyflakes happy
1 parent 6bbd4ae commit 2d7fda7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/sage/manifolds/subset.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,10 +2185,9 @@ def label(element):
21852185
if not others:
21862186
return res
21872187
for other in others[:-1]:
2188-
old, res = res, res._intersection_subset(other)
2188+
res = res._intersection_subset(other)
21892189
# The last one gets the name
2190-
other = others[-1]
2191-
return res._intersection_subset(other, name=name, latex_name=latex_name)
2190+
return res._intersection_subset(others[-1], name=name, latex_name=latex_name)
21922191

21932192
@staticmethod
21942193
def _reduce_intersection_members(subsets):
@@ -2416,10 +2415,9 @@ def label(element):
24162415
if not others:
24172416
return res
24182417
for other in others[:-1]:
2419-
old, res = res, res._union_subset(other)
2418+
res = res._union_subset(other)
24202419
# The last one gets the name
2421-
other = others[-1]
2422-
return res._union_subset(other, name=name, latex_name=latex_name)
2420+
return res._union_subset(others[-1], name=name, latex_name=latex_name)
24232421

24242422
@staticmethod
24252423
def _reduce_union_members(subsets):

0 commit comments

Comments
 (0)