Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
else:
options.cols = 80
headers = a, b
if not options.print_headers:
headers = None, None
head = int(options.head)
lines_a = open(a, "U").readlines()
lines_b = open(b, "U").readlines()
if head != 0:
lines_a = lines_a[:head]
lines_b = lines_b[:head]
print ConsoleDiff(cols=int(options.cols),
show_all_spaces=options.show_all_spaces,
highlight=options.highlight,
line_numbers=options.line_numbers).make_table(
lines_a, lines_b, headers[0], headers[1], context=options.context, numlines=int(options.numlines))