Lines Matching refs:open
39 from builtins import open as bltn_open
73 "DEFAULT_FORMAT", "open"]
321 self.fd = os.open(name, mode, 0o666)
1767 # TarFile class. The open() method is the only one that is needed for
1777 def open(cls, name=None, mode="r", fileobj=None, bufsize=RECORDSIZE, **kwargs):
1782 'r' or 'r:*' open for reading with transparent compression
1783 'r:' open for reading exclusively uncompressed
1784 'r:gz' open for reading with gzip compression
1785 'r:bz2' open for reading with bzip2 compression
1786 'r:xz' open for reading with lzma compression
1787 'a' or 'a:' open for appending, creating the file if necessary
1788 'w' or 'w:' open for writing without compression
1789 'w:gz' open for writing with gzip compression
1790 'w:bz2' open for writing with bzip2 compression
1791 'w:xz' open for writing with lzma compression
1802 'r|*' open a stream of tar blocks with transparent compression
1803 'r|' open an uncompressed stream of tar blocks for reading
1804 'r|gz' open a gzip compressed stream of tar blocks
1805 'r|bz2' open a bzip2 compressed stream of tar blocks
1806 'r|xz' open an lzma compressed stream of tar blocks
1807 'w|' open an uncompressed stream for writing
1808 'w|gz' open a gzip compressed stream for writing
1809 'w|bz2' open a bzip2 compressed stream for writing
1810 'w|xz' open an lzma compressed stream for writing
1814 raise ValueError("nothing to open")
1817 # Find out which *open() is appropriate for opening the file.
1840 # Select the *open() function according to
1967 # All *open() methods are registered here.
2719 """Check if TarFile is still open, and if the operation's mode
2810 t = open(fileobj=name)
2813 t = open(name)
2819 open = TarFile.open
2853 with open(src, 'r') as tar:
2864 with TarFile.open(src, 'r:*') as tf:
2879 with TarFile.open(src, 'r:*') as tf:
2910 with TarFile.open(tar_name, tar_mode) as tf: