Searched refs:file_or_path (Results 1 – 2 of 2) sorted by relevance
242 def make_lexer_(file_or_path): argument243 if hasattr(file_or_path, "read"):244 fileobj, closing = file_or_path, False246 filename, closing = file_or_path, True
177 def process_file(file_or_path):178 if isinstance(file_or_path, str):180 cm = open(file_or_path)183 cm = nullcontext(file_or_path)