(s)
| 69 | |
| 70 | |
| 71 | def hexstr(s): |
| 72 | assert isinstance(s, bytes), repr(s) |
| 73 | h = "0123456789abcdef" |
| 74 | r = '' |
| 75 | for i in s: |
| 76 | r += h[(i >> 4) & 0xF] + h[i & 0xF] |
| 77 | return r |
| 78 | |
| 79 | |
| 80 | URL = "http://www.pythontest.net/hashlib/{}.txt" |
no test coverage detected