MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / write

Function write

thirdparty/six/__init__.py:770–781  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

768 return
769
770 def write(data):
771 if not isinstance(data, basestring):
772 data = str(data)
773 # If the file has an encoding, encode unicode with it.
774 if (isinstance(fp, file) and
775 isinstance(data, unicode) and
776 fp.encoding is not None):
777 errors = getattr(fp, "errors", None)
778 if errors is None:
779 errors = "strict"
780 data = data.encode(fp.encoding, errors)
781 fp.write(data)
782 want_unicode = False
783 sep = kwargs.pop("sep", None)
784 if sep is not None:

Callers 2

_copy_fileMethod · 0.85
print_Function · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…