|
1 | | -from __future__importabsolute_import,division,unicode_literals |
2 | 1 |
|
3 | 2 | fromsiximporttext_type |
4 | 3 | fromsix.movesimporthttp_client,urllib |
|
48 | 47 | charsUntilRegEx= {} |
49 | 48 |
|
50 | 49 |
|
51 | | -classBufferedStream(object): |
| 50 | +classBufferedStream: |
52 | 51 | """Buffering for streams that do not have buffering of their own |
53 | 52 |
|
54 | 53 | The buffer is implemented as a list of chunks on the assumption that |
@@ -145,7 +144,7 @@ def HTMLInputStream(source, **kwargs): |
145 | 144 | returnHTMLBinaryInputStream(source,**kwargs) |
146 | 145 |
|
147 | 146 |
|
148 | | -classHTMLUnicodeInputStream(object): |
| 147 | +classHTMLUnicodeInputStream: |
149 | 148 | """Provides a unicode stream of characters to the HTMLTokenizer. |
150 | 149 |
|
151 | 150 | This class takes care of character encoding and removing or replacing |
@@ -673,7 +672,7 @@ def jumpTo(self, bytes): |
673 | 672 | returnTrue |
674 | 673 |
|
675 | 674 |
|
676 | | -classEncodingParser(object): |
| 675 | +classEncodingParser: |
677 | 676 | """Mini parser for detecting character encoding from meta elements""" |
678 | 677 |
|
679 | 678 | def__init__(self,data): |
@@ -861,7 +860,7 @@ def getAttribute(self): |
861 | 860 | attrValue.append(c) |
862 | 861 |
|
863 | 862 |
|
864 | | -classContentAttrParser(object): |
| 863 | +classContentAttrParser: |
865 | 864 | def__init__(self,data): |
866 | 865 | assertisinstance(data,bytes) |
867 | 866 | self.data=data |
|