Skip to content

Commit 2fe9f3d

Browse files
committed
apply suggestions
1 parent 1a96826 commit 2fe9f3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sage/combinat/posets/hasse_cython.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class IncreasingChains(RecursivelyEnumeratedSet_forest):
116116
return True
117117
if self._conversion is not None:
118118
tup = [self._from_poset[elt] for elt in tup]
119-
if any(not (0 <= i < self._n) for i in tup):
119+
if not all(0 <= i < self._n for i in tup):
120120
return False
121121
y = tup[0]
122122
for k in range(1, len(tup)):

src/sage/matrix/matrix0.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5140,9 +5140,9 @@ cdef class Matrix(sage.structure.element.Matrix):
51405140
fac = o1.factor()
51415141
S = sum((pi - 1) * pi**(ei - 1) for pi, ei in fac)
51425142
if fac[0] == (2, 1):
5143-
impossible_order = not (S <= n + 1)
5143+
impossible_order = S > n + 1
51445144
else:
5145-
impossible_order = not (S <= n)
5145+
impossible_order = S > n
51465146
if impossible_order:
51475147
return Infinity
51485148

0 commit comments

Comments
 (0)