Skip to content

Commit d2474af

Browse files
committed
Make InputStream.readChunk default an int
This allows us to define the argument as an int in Cython
1 parent 6eb4d2d commit d2474af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html5lib/_inputstream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ def char(self):
246246

247247
return char
248248

249-
def readChunk(self, chunkSize=None):
250-
if chunkSize is None:
249+
def readChunk(self, chunkSize=0):
250+
if chunkSize == 0:
251251
chunkSize = self._defaultChunkSize
252252

253253
self.prevNumLines, self.prevNumCols = self._position(self.chunkSize)

0 commit comments

Comments
 (0)