>>> cmp("a", "b") -1 >>> cmp(2, 1) 1
(a, b)
| 192 | return headers |
| 193 | |
| 194 | def 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 |
| 210 | def choose_boundary(): |
no outgoing calls
no test coverage detected