Skip to content

Remove unnecessary empty string in print function #40419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 25, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove unnecessary empty string
  • Loading branch information
tqa236 committed Jul 16, 2025
commit 20e744466a696987dbfe4d52774b2ef7f0788cf4
2 changes: 1 addition & 1 deletion src/sage/combinat/cluster_algebra_quiver/cluster_seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -4460,7 +4460,7 @@ def find_upper_bound(self, verbose=False):
new_gen_found = True
if verbose:
print('Found a new element in', spend, 'seconds!')
print('')
print()
i += 1

def get_upper_cluster_algebra_element(self, a):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/logic/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def print_table(self, table):
line += s
i += 1
print(line)
print("")
print()

def combine(self, statement1, statement2):
r"""
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/number_field/totallyreal_rel.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def incr(self, f_out, verbose=False, haltk=0):
print(k, ":", end="")
for i in range(self.m + 1):
print(self.a[i], end="")
print("")
print()

if k == m - 2:
# We only know the value of a[n-1], the trace.
Expand Down
4 changes: 2 additions & 2 deletions src/sage/rings/polynomial/multi_polynomial_ideal.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _groebner_basis_magma(self, deg_bound=None, prot=False, magma=magma_default)
mgb = mself.GroebnerBasis()

if prot == "sage":
print("")
print()
print("Highest degree reached during computation: %2d." % log_parser.max_deg)

# TODO: rewrite this to be much more sophisticated in multi-level nested cases.
Expand Down Expand Up @@ -1560,7 +1560,7 @@ def _groebner_basis_singular_raw(self, algorithm='groebner', singular=None, *arg
raise TypeError("algorithm '%s' unknown" % algorithm)
self.__gb_singular = S
if prot == "sage":
print("")
print()
print("Highest degree reached during computation: %2d." % log_parser.max_deg)
return S

Expand Down
4 changes: 2 additions & 2 deletions src/sage/sandpiles/sandpile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5917,11 +5917,11 @@ def sandlib(selector=None):
3: [1, 2]}},
}
if selector is None:
print('')
print()
print(' Sandpiles in the sandlib:')
for i in sorted(sandpiles):
print(' ', i, ':', sandpiles[i]['description'])
print("")
print()
elif selector not in sandpiles:
print(selector, 'is not in the sandlib.')
else:
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy