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

Function cmp

lib/core/compat.py:194–207  ·  view source on GitHub ↗

>>> cmp("a", "b") -1 >>> cmp(2, 1) 1

(a, b)

Source from the content-addressed store, hash-verified

192 return headers
193
194def cmp(a, b):
195 """
196 >>> cmp("a", "b")
197 -1
198 >>> cmp(2, 1)
199 1
200 """
201
202 if a < b:
203 return -1
204 elif a > b:
205 return 1
206 else:
207 return 0
208
209# Reference: https://github.com/urllib3/urllib3/blob/master/src/urllib3/filepost.py
210def choose_boundary():

Callers 2

_setTamperingFunctionsFunction · 0.90
showStaticWordsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected