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 1e208b1 commit 26ea58bCopy full SHA for 26ea58b
superstring/superstring.py
@@ -132,7 +132,7 @@ def character_at(self, index):
132
return self._base.character_at(self._start_index + index)
133
134
def to_printable(self, start_index=None, end_index=None):
135
- start_index = start_index if start_index else 0
+ start_index = start_index if start_index is not None else 0
136
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
0 commit comments