Skip to content

Commit 26ea58b

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

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
@@ -132,7 +132,7 @@ def character_at(self, index):
132132
return self._base.character_at(self._start_index + index)
133133

134134
def to_printable(self, start_index=None, end_index=None):
135-
start_index = start_index if start_index else 0
135+
start_index = start_index if start_index is not None else 0
136136
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

0 commit comments

Comments
 (0)