OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self) |
def | write (self, data) |
def | sha (self, as_hex=False) |
Data Fields | |
sha1 | |
Simple stream writer which produces a sha whenever you like as it degests everything it is supposed to write
def __init__ | ( | self | ) |
Reimplemented in ZippedStoreShaWriter.
def sha | ( | self, | |
as_hex = False |
|||
) |
:return: sha so far :param as_hex: if True, sha will be hex-encoded, binary otherwise
def write | ( | self, | |
data | |||
) |
:raise IOError: If not all bytes could be written :param data: byte object :return: length of incoming data
Reimplemented in FDCompressedSha1Writer, ZippedStoreShaWriter, and FlexibleSha1Writer.
sha1 |