From 02c491dda7f67bb0f837cde8665cbfdf449deb18 Mon Sep 17 00:00:00 2001 From: codereverser Date: Thu, 30 Mar 2017 17:35:38 +1100 Subject: [PATCH] Added **kwargs to UnicodeInputStream Fixes crash while using lxml html5parser --- html5lib/_inputstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html5lib/_inputstream.py b/html5lib/_inputstream.py index 79f2331e..e3966178 100644 --- a/html5lib/_inputstream.py +++ b/html5lib/_inputstream.py @@ -161,7 +161,7 @@ class HTMLUnicodeInputStream(object): _defaultChunkSize = 10240 - def __init__(self, source): + def __init__(self, source, **kwargs): """Initialises the HTMLInputStream. HTMLInputStream(source, [encoding]) -> Normalized stream from source