Skip to content

Commit 9829c71

Browse files
committed
Actually remove count parameter, 0 is the default
1 parent 291c3d6 commit 9829c71

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sage/interfaces/singular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ def _repr_(self):
14011401
# this is our cue that singular uses `rp` instead of `ip`
14021402
if singular_name_mapping['invlex'] == 'rp' and 'doctest' in str(get_display_manager()):
14031403
s = re.sub('^(// .*block.* : ordering )rp$', '\\1ip',
1404-
s, count=0, flags=re.MULTILINE)
1404+
s, flags=re.MULTILINE)
14051405
return s
14061406

14071407
def __copy__(self):

src/sage/misc/cython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def cython(filename, verbose=0, compile_message=False,
380380
cython_messages = re.sub(
381381
"^.*The keyword 'nogil' should appear at the end of the function signature line. "
382382
"Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.\n",
383-
"", cython_messages, count=0, flags=re.MULTILINE)
383+
"", cython_messages, flags=re.MULTILINE)
384384

385385
sys.stderr.write(cython_messages)
386386
sys.stderr.flush()

src/sage/rings/ring_extension_morphism.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ cdef class RingExtensionHomomorphism(RingMap):
461461
if self.base_map() is not None:
462462
s += "with map on base ring"
463463
ss = self.base_map()._repr_defn()
464-
ss = re.sub('\nwith map on base ring:?$', '', ss, count=0, flags=re.MULTILINE)
464+
ss = re.sub('\nwith map on base ring:?$', '', ss, flags=re.MULTILINE)
465465
if ss != "": s += ":\n" + ss
466466
if s != "" and s[-1] == "\n":
467467
s = s[:-1]

0 commit comments

Comments
 (0)