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.py137 file_or_filename, argument
147 file_or_filename,
181 with _get_writer(file_or_filename, encoding) as write:
263 def _get_writer(file_or_filename, encoding): argument
266 write = file_or_filename.write
270 file_or_filename,
286 if isinstance(file_or_filename, io.BufferedIOBase):
287 buf = file_or_filename
288 elif isinstance(file_or_filename, io.RawIOBase):
289 buf = io.BufferedWriter(file_or_filename)
[all …]
/external/python/cpython3/Lib/xml/etree/
DElementTree.py721 def write(self, file_or_filename, argument
760 with _get_writer(file_or_filename, enc_lower) as write:
787 def _get_writer(file_or_filename, encoding): argument
790 write = file_or_filename.write
794 file = open(file_or_filename, "w")
796 file = open(file_or_filename, "w", encoding=encoding,
809 if isinstance(file_or_filename, io.BufferedIOBase):
810 file = file_or_filename
811 elif isinstance(file_or_filename, io.RawIOBase):
812 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: