Home
last modified time | relevance | path

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

/external/fonttools/Lib/fontTools/feaLib/
Dlexer.py265 def make_lexer_(file_or_path): argument
266 if hasattr(file_or_path, "read"):
267 fileobj, closing = file_or_path, False
269 filename, closing = file_or_path, True
/external/fonttools/Lib/fontTools/voltLib/
Dparser.py36 def make_lexer_(self, file_or_path): argument
37 if hasattr(file_or_path, "read"):
38 filename = getattr(file_or_path, "name", None)
39 data = file_or_path.read()
41 filename = file_or_path
42 with open(file_or_path, "r") as f:
/external/python/cpython3/Doc/library/
Dcontextlib.rst237 def process_file(file_or_path):
238 if isinstance(file_or_path, str):
240 cm = open(file_or_path)
243 cm = nullcontext(file_or_path)