| 1 | |
| 2 | """ |
| 3 | Mixed-module definition for the binascii module. |
| 4 | Note that there is also a pure Python implementation in lib_pypy/binascii.py; |
| 5 | the pypy/module/binascii/ version takes precedence if it is enabled. |
| 6 | """ |
| 7 | |
| 8 | from pypy.interpreter.mixedmodule import MixedModule |
| 9 | |
| 10 | |
| 11 | class Module(MixedModule): |
| 12 | """binascii - Conversion between binary data and ASCII""" |
| 13 | |
| 14 | appleveldefs = { |
| 15 | } |
| 16 | |
| 17 | interpleveldefs = { |
| 18 | 'a2b_uu': 'interp_uu.a2b_uu', |
| 19 | 'b2a_uu': 'interp_uu.b2a_uu', |
| 20 | 'a2b_base64': 'interp_base64.a2b_base64', |
| 21 | 'b2a_base64': 'interp_base64.b2a_base64', |
| 22 | 'a2b_qp': 'interp_qp.a2b_qp', |
| 23 | 'b2a_qp': 'interp_qp.b2a_qp', |
| 24 | 'a2b_hqx': 'interp_hqx.a2b_hqx', |
| 25 | 'b2a_hqx': 'interp_hqx.b2a_hqx', |
| 26 | 'rledecode_hqx': 'interp_hqx.rledecode_hqx', |
| 27 | 'rlecode_hqx': 'interp_hqx.rlecode_hqx', |
| 28 | 'crc_hqx': 'interp_hqx.crc_hqx', |
| 29 | 'crc32': 'interp_crc32.crc32', |
| 30 | 'b2a_hex': 'interp_hexlify.hexlify', |
| 31 | 'hexlify': 'interp_hexlify.hexlify', |
| 32 | 'a2b_hex': 'interp_hexlify.unhexlify', |
| 33 | 'unhexlify': 'interp_hexlify.unhexlify', |
| 34 | 'Error' : 'space.fromcache(interp_binascii.Cache).w_error', |
| 35 | 'Incomplete': 'space.fromcache(interp_binascii.Cache).w_incomplete', |
| 36 | } |