def __init__(self, data):
        """string - the data to work on for encoding detection"""
        self.data = EncodingBytes(data)
        self.encoding = None
string - the data to work on for encoding detection
html5lib/inputstream.py