OpenQuizz
Une application de gestion des contenus pédagogiques
IndexFileSHA1Writer Class Reference
Inheritance diagram for IndexFileSHA1Writer:
Collaboration diagram for IndexFileSHA1Writer:

Public Member Functions

def __init__ (self, f)
 
def write (self, data)
 
def write_sha (self)
 
def close (self)
 
def tell (self)
 

Data Fields

 f
 
 sha1
 

Detailed Description

Wrapper around a file-like object that remembers the SHA1 of
the data written to it. It will write a sha when the stream is closed
or if the asked for explicitly using write_sha.

Only useful to the indexfile

:note: Based on the dulwich project

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  f 
)

Member Function Documentation

◆ close()

def close (   self)

◆ tell()

def tell (   self)

◆ write()

def write (   self,
  data 
)

◆ write_sha()

def write_sha (   self)

Field Documentation

◆ f

f

◆ sha1

sha1

The documentation for this class was generated from the following file: