def __init__(self, filename='/etc/resolv.conf', configure=True):

        self.reset()
        if configure:
            if sys.platform == 'win32':
                self.read_registry()
            elif filename:
                self.read_resolv_conf(filename)
Attempt to parse code as JSON, return '' if it succeeds, the error message if it fails.
dataset/ETHPy150Open catap/namebench/nb_third_party/dns/resolver.py/Resolver.__init__--crossover with--dataset/ETHPy150Open SublimeLinter/SublimeLinter-json/linter.py/JSON.run