Searched refs:file_or_path (Results 1 – 4 of 4) sorted by relevance
/aosp_15_r20/external/fonttools/Lib/fontTools/feaLib/ |
H A D | lexer.py | 267 def make_lexer_(file_or_path): argument 268 if hasattr(file_or_path, "read"): 269 fileobj, closing = file_or_path, False 271 filename, closing = file_or_path, True
|
/aosp_15_r20/external/fonttools/Lib/fontTools/voltLib/ |
H A 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:
|
H A D | voltToFea.py | 88 def __init__(self, file_or_path, font=None): argument 89 self._file_or_path = file_or_path 693 file_or_path = options.input 696 font = TTFont(file_or_path) 698 file_or_path = StringIO(font["TSIV"].data.decode("utf-8")) 705 converter = VoltToFea(file_or_path, font)
|
/aosp_15_r20/external/python/cpython3/Doc/library/ |
D | contextlib.rst | 239 def process_file(file_or_path): 240 if isinstance(file_or_path, str): 242 cm = open(file_or_path) 245 cm = nullcontext(file_or_path)
|