tarfile.TarFile.add()

TarFile.add(name, arcname=None, recursive=True, exclude=None, *, filter=None) Add the file name to the archive. name may be any type of file (directory, fifo, symbolic link, etc.). If given, arcname specifies an alternative name for the file in the archive. Directories are added recursively by default. This can be avoided by setting recursive to False. If exclude is given, it must be a function that takes one filename argument and returns a boolean value. Depending on this value the respecti

tarfile.open()

tarfile.open(name=None, mode='r', fileobj=None, bufsize=10240, **kwargs) Return a TarFile object for the pathname name. For detailed information on TarFile objects and the keyword arguments that are allowed, see TarFile Objects. mode has to be a string of the form 'filemode[:compression]', it defaults to 'r'. Here is a full list of mode combinations: mode action 'r' or 'r:*' Open for reading with transparent compression (recommended). 'r:' Open for reading exclusively without compression. 'r

tarfile.ExtractError

exception tarfile.ExtractError Is raised for non-fatal errors when using TarFile.extract(), but only if TarFile.errorlevel== 2.

tarfile.HeaderError

exception tarfile.HeaderError Is raised by TarInfo.frombuf() if the buffer it gets is invalid.

tarfile.is_tarfile()

tarfile.is_tarfile(name) Return True if name is a tar archive file, that the tarfile module can read.

tarfile.ReadError

exception tarfile.ReadError Is raised when a tar archive is opened, that either cannot be handled by the tarfile module or is somehow invalid.

tabnanny.filename_only

tabnanny.filename_only Flag indicating whether to print only the filenames of files containing whitespace related problems. This is set to true by the -q option if called as a script.

tabnanny.check()

tabnanny.check(file_or_dir) If file_or_dir is a directory and not a symbolic link, then recursively descend the directory tree named by file_or_dir, checking all .py files along the way. If file_or_dir is an ordinary Python source file, it is checked for whitespace related problems. The diagnostic messages are written to standard output using the print() function.

tabnanny.NannyNag

exception tabnanny.NannyNag Raised by tokeneater() if detecting an ambiguous indent. Captured and handled in check().

tabnanny.tokeneater()

tabnanny.tokeneater(type, token, start, end, line) This function is used by check() as a callback parameter to the function tokenize.tokenize().