Searched refs:file_or_path (Results 1 – 3 of 3) sorted by relevance
/external/fonttools/Lib/fontTools/feaLib/ |
D | lexer.py | 265 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/ |
D | parser.py | 36 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/ |
D | contextlib.rst | 237 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)
|