Skip to content

Commit 2f1e749

Browse files
committed
added the else statement
1 parent ec8cb35 commit 2f1e749

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sage/combinat/integer_vector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,8 @@ def __init__(self, n):
855855
self.n = n
856856
if self.n == 0:
857857
IntegerVectors.__init__(self, category=EnumeratedSets())
858-
IntegerVectors.__init__(self, category=InfiniteEnumeratedSets())
858+
else:
859+
IntegerVectors.__init__(self, category=InfiniteEnumeratedSets())
859860

860861
def _repr_(self):
861862
"""
@@ -996,7 +997,8 @@ def __init__(self, k):
996997
self.k = k
997998
if self.k == 0:
998999
IntegerVectors.__init__(self, category=EnumeratedSets())
999-
IntegerVectors.__init__(self, category=InfiniteEnumeratedSets())
1000+
else:
1001+
IntegerVectors.__init__(self, category=InfiniteEnumeratedSets())
10001002

10011003
def _repr_(self):
10021004
"""

0 commit comments

Comments
 (0)