Home
last modified time | relevance | path

Searched refs:file_or_filename (Results 1 – 5 of 5) sorted by relevance

/external/fonttools/Lib/fontTools/misc/
Detree.py136 file_or_filename, argument
146 file_or_filename,
180 with _get_writer(file_or_filename, encoding) as write:
262 def _get_writer(file_or_filename, encoding): argument
265 write = file_or_filename.write
269 file_or_filename,
285 if isinstance(file_or_filename, io.BufferedIOBase):
286 buf = file_or_filename
287 elif isinstance(file_or_filename, io.RawIOBase):
288 buf = io.BufferedWriter(file_or_filename)
[all …]
/external/python/cpython3/Lib/xml/etree/
DElementTree.py693 def write(self, file_or_filename, argument
732 with _get_writer(file_or_filename, enc_lower) as write:
759 def _get_writer(file_or_filename, encoding): argument
762 write = file_or_filename.write
766 file = open(file_or_filename, "w")
768 file = open(file_or_filename, "w", encoding=encoding,
781 if isinstance(file_or_filename, io.BufferedIOBase):
782 file = file_or_filename
783 elif isinstance(file_or_filename, io.RawIOBase):
784 file = io.BufferedWriter(file_or_filename)
[all …]
/external/python/cpython2/Lib/xml/etree/
DElementTree.py787 def write(self, file_or_filename, argument
799 if hasattr(file_or_filename, "write"):
800 file = file_or_filename
802 file = open(file_or_filename, "wb")
821 if file_or_filename is not file:
/external/python/setuptools/setuptools/_vendor/
Dpyparsing.py2132 def parseFile( self, file_or_filename, parseAll=False ): argument
2139 file_contents = file_or_filename.read()
2141 with open(file_or_filename, "r") as f:
/external/python/setuptools/pkg_resources/_vendor/
Dpyparsing.py2132 def parseFile( self, file_or_filename, parseAll=False ): argument
2139 file_contents = file_or_filename.read()
2141 with open(file_or_filename, "r") as f: