MCPcopy Create free account
hub / github.com/jeffkaufman/icdiff / codec_print

Function codec_print

icdiff.py:806–811  ·  view source on GitHub ↗
(s, options)

Source from the content-addressed store, hash-verified

804
805
806def codec_print(s, options):
807 s = "%s\n" % s
808 if hasattr(sys.stdout, "buffer"):
809 sys.stdout.buffer.write(s.encode(options.output_encoding))
810 else:
811 sys.stdout.write(s.encode(options.output_encoding))
812
813
814def cmp_perms(options, a, b):

Callers 3

print_metaFunction · 0.85
read_fileFunction · 0.85
diff_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…