Home
last modified time | relevance | path

Searched refs:tobuf (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_tarfile.py290 fobj.write(tarinfo.tobuf())
1610 data = tarfile.TarInfo("foo").tobuf()
1614 data = tarfile.TarInfo("foo").tobuf()
1626 tarinfo.tobuf(tarfile.USTAR_FORMAT)
1630 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1634 tarinfo.tobuf(tarfile.USTAR_FORMAT)
1638 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1642 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1647 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
1652 self.assertRaises(ValueError, tarinfo.tobuf, tarfile.USTAR_FORMAT)
[all …]
/external/python/cpython2/Lib/
Dtarfile.py1000 def tobuf(self, format=DEFAULT_FORMAT, encoding=ENCODING, errors="strict"): member in TarInfo
2048 buf = tarinfo.tobuf(self.format, self.encoding, self.errors)
/external/python/cpython2/Doc/library/
Dtarfile.rst527 .. method:: TarInfo.tobuf(format=DEFAULT_FORMAT, encoding=ENCODING, errors='strict')