Skip to content

Commit 2d110bd

Browse files
fchapotonmantepse
andauthored
detail in is_field
Co-authored-by: Martin Rubey <[email protected]>
1 parent b57db76 commit 2d110bd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sage/categories/integral_domains.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ def is_field(self, proof=True):
155155
if self.is_finite():
156156
return True
157157
if proof:
158-
raise NotImplementedError("unable to determine whether or not is a field.")
159-
else:
160-
return False
158+
raise NotImplementedError(f"unable to determine whether or not {self} is a field.")
159+
return False
161160

162161
def localization(self, additional_units, names=None, normalize=True, category=None):
163162
"""

0 commit comments

Comments
 (0)