Changeset 42 for trunk


Ignore:
Timestamp:
03/25/13 20:06:29 (12 years ago)
Author:
tmorgan
Message:

fixed bug in 2->3 transition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bletchley/blobtools.py

    r40 r42  
    1919
    2020import sys
    21 import string
    2221import base64
    2322import binascii
     
    191190
    192191        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'+/=')
    194193            blob = blob.translate(table)
    195194
     
    201200
    202201        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)
    204203            ret_val = ret_val.translate(table)
    205204
Note: See TracChangeset for help on using the changeset viewer.