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

Function str_value

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

Source from the content-addressed store, hash-verified

113 return x
114
115def str_value(x):
116 x = resolve1(x)
117 if not isinstance(x, str):
118 if STRICT:
119 raise PDFTypeError('String required: %r' % x)
120 return ''
121 return x
122
123def list_value(x):
124 x = resolve1(x)

Callers 2

initializeMethod · 0.90
searchMethod · 0.90

Calls 2

resolve1Function · 0.85
PDFTypeErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…