mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
use jc.utils.input_type_check() and simplify compatibility check
This commit is contained in:
@ -225,8 +225,8 @@ def parse(data, raw=False, quiet=False):
|
||||
|
||||
Dictionary. 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)
|
||||
|
||||
raw_output = {}
|
||||
cleandata = data.splitlines()
|
||||
|
Reference in New Issue
Block a user