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

Commit

Permalink
src/sage/manifolds/subset.py: Simplify code, make pyflakes happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed May 12, 2021
1 parent ee4efc9 commit 21739de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/manifolds/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2187,8 +2187,7 @@ def label(element):
old, res = res, res._intersection_subset(other)
# The last one gets the name
other = others[-1]
old, res = res, res._intersection_subset(other, name=name, latex_name=latex_name)
return res
return res._intersection_subset(other, name=name, latex_name=latex_name)

@staticmethod
def _reduce_intersection_members(subsets):
Expand Down Expand Up @@ -2419,8 +2418,7 @@ def label(element):
old, res = res, res._union_subset(other)
# The last one gets the name
other = others[-1]
old, res = res, res._union_subset(other, name=name, latex_name=latex_name)
return res
return res._union_subset(other, name=name, latex_name=latex_name)

@staticmethod
def _reduce_union_members(subsets):
Expand Down

0 comments on commit 21739de

Please sign in to comment.