def documentEncoding(self):
        """Name of the character encoding that was used to decode the input stream, or
        :obj:`None` if that is not determined yet

        """
        if not hasattr(self, 'tokenizer'):
            return None
        return self.tokenizer.stream.charEncoding[0].name
Name of the character encoding that was used to decode the input stream, or
        :obj:`None` if that is not determined yet

        
product/gradle-plugin/src/main/python/pip/_vendor/html5lib/html5parser.py