def parse_raml(self):
if utils.is_url(self.ramlfile):<EOL><INDENT>raml = utils.download_file(self.ramlfile)<EOL><DEDENT>else:<EOL><INDENT>with codecs.open(self.ramlfile, "<STR_LIT:rb>", encoding="<STR_LIT:utf-8>") as raml_f:<EOL><INDENT>raml = raml_f.read()<EOL><DEDENT><DEDENT>loader = ramlfications.loads(raml)<EOL>config = ramlfications.setup_config(self.ramlconfig)<EOL>self.raml = ramlfications.parse_raml(loader, config)<EOL>
Parse RAML file