- Timestamp:
- 03/25/13 20:06:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/bletchley/blobtools.py
r40 r42 19 19 20 20 import sys 21 import string22 21 import base64 23 22 import binascii … … 191 190 192 191 if not self.dialect.startswith('rfc3548'): 193 table = string.maketrans(self.c62+self.c63+self.pad, b'+/=')192 table = bytes.maketrans(self.c62+self.c63+self.pad, b'+/=') 194 193 blob = blob.translate(table) 195 194 … … 201 200 202 201 if not self.dialect.startswith('rfc3548'): 203 table = string.maketrans(b'+/=', self.c62+self.c63+self.pad)202 table = bytes.maketrans(b'+/=', self.c62+self.c63+self.pad) 204 203 ret_val = ret_val.translate(table) 205 204
Note: See TracChangeset
for help on using the changeset viewer.