Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def truncate():
with open(six.text_type(output), 'w') as output_file:
pass
elif callable(output):
def write(s):
with open(six.text_type(output), 'a') as output_file:
output_file.write(s)
def truncate():