Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
parser=parser,
read_network=options.read_network,
absolute_prefix=options.absolute_prefix,
includemode=options.includemode,
indent=options.pretty_print,
xsl_params=xsl_params,
runtrace=runtrace,
)
if content == '-':
content = sys.stdin
if options.read_network:
access_control = AC_READ_NET
else:
access_control = AC_READ_FILE
transform = etree.XSLT(output_xslt, access_control=access_control)
content_doc = etree.parse(content, parser=parser)
params = {}
if options.path is not None:
params['path'] = "'{path}'".format(path=options.path)
if options.parameters:
for key, value in split_params(options.parameters).items():
params[key] = quote_param(value)
output_html = transform(content_doc, **params)
if isinstance(options.output, string_types):
out = open(options.output, 'wt')
else:
out = options.output