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

Method write

lib/core/compat.py:347–363  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

345 self._line_buffered = line_buffered
346
347 def write(self, data):
348 # bytes-like but not text -> decode
349 if isinstance(data, _bytes_types) and not isinstance(data, _text_type):
350 data = bytes(data).decode(self._encoding, self._errors)
351 elif not isinstance(data, _text_type):
352 data = _text_type(data)
353
354 n = self._fh.write(data)
355
356 # Approximate "line buffering" behavior if requested
357 if self._line_buffered and u"\n" in data:
358 try:
359 self._fh.flush()
360 except Exception:
361 pass
362
363 return n
364
365 def writelines(self, lines):
366 for x in lines:

Callers 12

writelinesMethod · 0.95
_saveToResultsFileFunction · 0.45
blockingWriteToFDFunction · 0.45
sendMethod · 0.45
vulnTestFunction · 0.45
_dumpMethod · 0.45
_writeMethod · 0.45
dbTableValuesMethod · 0.45
_setPreprocessFunctionsFunction · 0.45
_setPostprocessFunctionsFunction · 0.45
_createTargetDirsFunction · 0.45
singleTimeWarnMessageFunction · 0.45

Calls 2

decodeMethod · 0.80
flushMethod · 0.45

Tested by 1

vulnTestFunction · 0.36