Skip to content

Commit 1e208b1

Browse files
Update superstring/superstring.py
Co-Authored-By: Aleksei Lymar <yoptar@gmail.com>
1 parent d638ea1 commit 1e208b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superstring/superstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def character_at(self, index):
133133

134134
def to_printable(self, start_index=None, end_index=None):
135135
start_index = start_index if start_index else 0
136-
end_index = end_index if end_index else self.length()
136+
end_index = end_index if end_index is not None else self.length()
137137
start_index += self._start_index
138138
end_index += self._start_index
139139
return self._base.to_printable(start_index, end_index=end_index)

0 commit comments

Comments
 (0)