OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | _BZ2Proxy |
class | _FileInFile |
class | _LowLevelFile |
class | _Stream |
class | _StreamProxy |
class | CompressionError |
class | EmptyHeaderError |
class | EOFHeaderError |
class | ExFileObject |
class | ExtractError |
class | HeaderError |
class | InvalidHeaderError |
class | ReadError |
class | StreamError |
class | SubsequentHeaderError |
class | TarError |
class | TarFile |
class | TarInfo |
class | TarIter |
class | TruncatedHeaderError |
Functions | |
def | stn (s, length, encoding, errors) |
def | nts (s, encoding, errors) |
def | nti (s) |
def | itn (n, digits=8, format=DEFAULT_FORMAT) |
def | calc_chksums (buf) |
def | copyfileobj (src, dst, length=None) |
def | filemode (mode) |
def | is_tarfile (name) |
def pip._vendor.distlib._backport.tarfile.calc_chksums | ( | buf | ) |
Calculate the checksum for a member's header by summing up all characters except for the chksum field which is treated as if it was filled with spaces. According to the GNU tar sources, some tars (Sun and NeXT) calculate chksum with signed char, which will be different if there are chars in the buffer with the high bit set. So we calculate two checksums, unsigned and signed.
def pip._vendor.distlib._backport.tarfile.copyfileobj | ( | src, | |
dst, | |||
length = None |
|||
) |
Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content.
def pip._vendor.distlib._backport.tarfile.filemode | ( | mode | ) |
Convert a file's mode to a string of the form -rwxrwxrwx. Used by TarFile.list()
def pip._vendor.distlib._backport.tarfile.is_tarfile | ( | name | ) |
Return True if name points to a tar archive that we are able to handle, else return False.
def pip._vendor.distlib._backport.tarfile.itn | ( | n, | |
digits = 8 , |
|||
format = DEFAULT_FORMAT |
|||
) |
Convert a python number to a number field.
def pip._vendor.distlib._backport.tarfile.nti | ( | s | ) |
Convert a number field to a python number.
def pip._vendor.distlib._backport.tarfile.nts | ( | s, | |
encoding, | |||
errors | |||
) |
Convert a null-terminated bytes object to a string.
def pip._vendor.distlib._backport.tarfile.stn | ( | s, | |
length, | |||
encoding, | |||
errors | |||
) |
Convert a string to a null-terminated bytes object.
AREGTYPE |
BLKTYPE |
BLOCKSIZE |
bltn_open |
CHRTYPE |
CONTTYPE |
DEFAULT_FORMAT |
DIRTYPE |
ENCODING |
FIFOTYPE |
filemode_table |
GNU_FORMAT |
GNU_MAGIC |
GNU_TYPES |
GNUTYPE_LONGLINK |
GNUTYPE_LONGNAME |
GNUTYPE_SPARSE |
grp |
LENGTH_LINK |
LENGTH_NAME |
LENGTH_PREFIX |
LNKTYPE |
NUL |
open |
PAX_FIELDS |
PAX_FORMAT |
PAX_NAME_FIELDS |
PAX_NUMBER_FIELDS |
POSIX_MAGIC |
pwd |
RECORDSIZE |
REGTYPE |
REGULAR_TYPES |
S_IFBLK |
S_IFCHR |
S_IFDIR |
S_IFIFO |
S_IFLNK |
S_IFREG |
SOLARIS_XHDTYPE |
SUPPORTED_TYPES |
symlink_exception |
SYMTYPE |
TGEXEC |
TGREAD |
TGWRITE |
TOEXEC |
TOREAD |
TOWRITE |
TSGID |
TSUID |
TSVTX |
TUEXEC |
TUREAD |
TUWRITE |
USTAR_FORMAT |
version |
XGLTYPE |
XHDTYPE |