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

Commit

Permalink
Trac 10513: checking if element_class is a method is no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbruin committed Mar 20, 2015
1 parent d1db7ea commit 7b09742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/categories/sets_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ def _element_constructor_(self):
<bound method GroupAlgebra_with_category.element_class of Group algebra of group "Symmetric group of order 3! as a permutation group" over base ring Integer Ring>
sage: B._element_constructor
"""
if hasattr(self, "element_class") and issubclass(self.element_class, object):
if hasattr(self, "element_class"):
return self._element_constructor_from_element_class
else:
return NotImplemented
Expand Down

0 comments on commit 7b09742

Please sign in to comment.