MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / str_to_list

Function str_to_list

tests/test_general.py:1029–1034  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1027 '''
1028 print(f'### check_lines():', flush=1)
1029 def str_to_list(s):
1030 if s is None:
1031 return list()
1032 if isinstance(s, str):
1033 return s.split('\n') if s else list()
1034 return s
1035 expected_regexes = str_to_list(expected_regexes)
1036 actual = str_to_list(actual)
1037 if expected_regexes and expected_regexes[-1]:

Callers 1

check_linesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…