We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d638ea1 commit 1e208b1Copy full SHA for 1e208b1
superstring/superstring.py
@@ -133,7 +133,7 @@ def character_at(self, index):
133
134
def to_printable(self, start_index=None, end_index=None):
135
start_index = start_index if start_index else 0
136
- end_index = end_index if end_index else self.length()
+ end_index = end_index if end_index is not None else self.length()
137
start_index += self._start_index
138
end_index += self._start_index
139
return self._base.to_printable(start_index, end_index=end_index)
0 commit comments