1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

use jc.utils.input_type_check() and simplify compatibility check

This commit is contained in:
Kelly Brazil
2021-11-30 11:43:06 -08:00
parent 0e2fe401e1
commit 12d2de2282
77 changed files with 181 additions and 165 deletions

View File

@ -153,8 +153,8 @@ def parse(data, raw=False, quiet=False):
List of Dictionaries. Raw or processed structured data.
"""
if not quiet: jc.utils.compatibility(__name__, info.compatible)
if not isinstance(data, str): raise TypeError("Input data must be a 'str' object.")
jc.utils.compatibility(__name__, info.compatible, quiet)
jc.utils.input_type_check(data)
cleandata = data.splitlines()[1:]
raw_output = []