MCPcopy Create free account
hub / github.com/scanny/python-pptx / snippet_bytes

Function snippet_bytes

tests/unitutil/file.py:14–18  ·  view source on GitHub ↗

Return bytes read from snippet file having `snippet_file_name`.

(snippet_file_name: str)

Source from the content-addressed store, hash-verified

12
13
14def snippet_bytes(snippet_file_name: str):
15 """Return bytes read from snippet file having `snippet_file_name`."""
16 snippet_file_path = os.path.join(test_file_dir, "snippets", "%s.txt" % snippet_file_name)
17 with open(snippet_file_path, "rb") as f:
18 return f.read().strip()
19
20
21def snippet_seq(name: str, offset: int = 0, count: int = sys.maxsize):

Calls 1

readMethod · 0.80

Used in the wild real call sites across dependent graphs

searching dependent graphs…