Changeset 82
- Timestamp:
- 06/26/15 22:04:19 (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/bletchley-http2py
r81 r82 152 152 # TODO: Perhaps you needs something like this? 153 153 # (See 'bletchley-decode -e ?' for a list of encodings) 154 # return blobtools.decode All(['percent/mixed','base64/rfc3548'], token)154 # return blobtools.decodeChain(['percent/mixed','base64/rfc3548'], token) 155 155 return token 156 156 … … 158 158 def encode(binary): 159 159 # TODO: Perhaps you needs something like this? 160 # return blobtools.encode All(['base64/rfc3548', 'percent/mixed'], binary)160 # return blobtools.encodeChain(['base64/rfc3548', 'percent/mixed'], binary) 161 161 return binary 162 162 ''' % (repr(host),repr(port),repr(protocol))) -
trunk/lib/bletchley/blobtools.py
r67 r82 31 31 # bytes or managing encoded case 32 32 def _percentEncode(binary, plus=False, upper=True): 33 fmt = "%%%.2 X"33 fmt = "%%%.2x" 34 34 if upper: 35 fmt = "%%%.2 x"35 fmt = "%%%.2X" 36 36 37 37 ret_val = bytearray(b'')
Note: See TracChangeset
for help on using the changeset viewer.