Skip to content

Commit e532f90

Browse files
committed
-
1 parent edf8f87 commit e532f90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source_py3/python_toolbox/sequence_tools/sequence_popping_view.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from python_toolbox import caching
1313

14-
from .misc import CuteSequence
14+
from .misc import CuteSequence, get_length
1515

1616
infinity = float('inf')
1717
infinities = (infinity, -infinity)
@@ -72,8 +72,8 @@ def clear(self):
7272

7373
copy = lambda self: type(self)(self.sequence,
7474
popped_indices=self.popped_indices)
75-
length = property(
76-
lambda self: len(self.sequence) - len(self.popped_indices))
75+
length = property(lambda self: get_length(self.sequence) -
76+
get_length(self.popped_indices))
7777
__repr__ = lambda self: '%s(%s, popped_indices=%s)' % (
7878
type(self).__name__, self.sequence, self.popped_indices
7979
)

0 commit comments

Comments
 (0)