Lichen

lib/binascii.py

90:c7ddfc4525da
2016-10-08 Paul Boddie Added some support for eliminating accessor class types where the provided attributes are invoked and are unbound methods. This uses a more sophisticated method involving usage observations that incorporate invocation information, permitting classes as accessors if paths through the code support them, even if other paths require instances as accessors to invoke methods.
     1 #!/usr/bin/env python     2      3 def a2b_base64(ascii):     4     pass     5      6 def a2b_hex(hexstr):     7     pass     8      9 def a2b_hqx(ascii):    10     pass    11     12 def a2b_qp(data):    13     pass    14     15 def a2b_uu(ascii):    16     pass    17     18 def b2a_base64(data):    19     pass    20     21 def b2a_hex(data):    22     pass    23     24 def b2a_hqx(data):    25     pass    26     27 def b2a_qp(data, quotetabs=0, istext=1, header=0):    28     pass    29     30 def b2a_uu(data):    31     pass    32     33 def crc32(data, oldcrc=0):    34     pass    35         36 def crc_hqx(data, oldcrc):    37     pass    38         39 hexlify = b2a_hex    40     41 def rlecode_hqx(data):    42     pass    43     44 def rledecode_hqx(data):    45     pass    46     47 unhexlify = a2b_hex    48     49 # vim: tabstop=4 expandtab shiftwidth=4