MCPcopy Index your code
hub / github.com/clips/pattern / stream_value

Function stream_value

pattern/web/pdf/pdftypes.py:139–145  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

137 return x
138
139def stream_value(x):
140 x = resolve1(x)
141 if not isinstance(x, PDFStream):
142 if STRICT:
143 raise PDFTypeError('PDFStream required: %r' % x)
144 return PDFStream({}, '')
145 return x
146
147
148## PDFStream type

Callers 7

getobjMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
fillfpMethod · 0.90
get_colorspaceMethod · 0.90
do_DoMethod · 0.90

Calls 3

resolve1Function · 0.85
PDFTypeErrorClass · 0.85
PDFStreamClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…