Skip to content

Commit

Permalink
Actually remove count parameter, 0 is the default
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-rojas committed Dec 16, 2024
1 parent 291c3d6 commit 9829c71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sage/interfaces/singular.py
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ def _repr_(self):
# this is our cue that singular uses `rp` instead of `ip`
if singular_name_mapping['invlex'] == 'rp' and 'doctest' in str(get_display_manager()):
s = re.sub('^(// .*block.* : ordering )rp$', '\\1ip',
s, count=0, flags=re.MULTILINE)
s, flags=re.MULTILINE)
return s

def __copy__(self):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/cython.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def cython(filename, verbose=0, compile_message=False,
cython_messages = re.sub(
"^.*The keyword 'nogil' should appear at the end of the function signature line. "
"Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.\n",
"", cython_messages, count=0, flags=re.MULTILINE)
"", cython_messages, flags=re.MULTILINE)

sys.stderr.write(cython_messages)
sys.stderr.flush()
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/ring_extension_morphism.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ cdef class RingExtensionHomomorphism(RingMap):
if self.base_map() is not None:
s += "with map on base ring"
ss = self.base_map()._repr_defn()
ss = re.sub('\nwith map on base ring:?$', '', ss, count=0, flags=re.MULTILINE)
ss = re.sub('\nwith map on base ring:?$', '', ss, flags=re.MULTILINE)
if ss != "": s += ":\n" + ss
if s != "" and s[-1] == "\n":
s = s[:-1]
Expand Down

0 comments on commit 9829c71

Please sign in to comment.