(data)
| 1061 | kb.prependFlag = isinstance(data, six.string_types) and (len(data) == 1 and data not in ('\n', '\r') or len(data) > 2 and data[0] == '\r' and data[-1] != '\n') |
| 1062 | |
| 1063 | def dataToTrafficFile(data): |
| 1064 | if not conf.trafficFile: |
| 1065 | return |
| 1066 | |
| 1067 | try: |
| 1068 | conf.trafficFP.write(data) |
| 1069 | conf.trafficFP.flush() |
| 1070 | except IOError as ex: |
| 1071 | errMsg = "something went wrong while trying " |
| 1072 | errMsg += "to write to the traffic file '%s' ('%s')" % (conf.trafficFile, getSafeExString(ex)) |
| 1073 | raise SqlmapSystemException(errMsg) |
| 1074 | |
| 1075 | def dataToDumpFile(dumpFile, data): |
| 1076 | try: |
no test coverage detected
searching dependent graphs…