def __init__(self, ucs4=True, termenc=None):
        """
        >>> scanner = DefaultScanner()
        >>> scanner._ucs4
        True
        """
        self._data = None
        self._ucs4 = ucs4
        if termenc:
            self._decoder = codecs.getincrementaldecoder(termenc)(errors='replace')
            self._termenc = termenc
        else:
            self._decoder = None
            self._termenc = None
def __init__ ( self , ucs4 = True , termenc = None ) : self . _data = None self . _ucs4 = ucs4 if termenc : self . _decoder = codecs . getincrementaldecoder ( termenc ) ( errors = 'replace' ) self . _termenc = termenc else : self . _decoder = None self . _termenc = None
>>> scanner = DefaultScanner()
        >>> scanner._ucs4
        True