src/cm/converters/abi_converters.py
changeset 442 b6e443be2a9b
parent 433 056d92bffb23
child 454 b7a092a52eae
equal deleted inserted replaced
441:d5d3bcd26a0b 442:b6e443be2a9b
    98             
    98             
    99         # is the type specified
    99         # is the type specified
   100         type = TYPES_OUT.get(
   100         type = TYPES_OUT.get(
   101             type or os.path.splitext(out_file)[1][1:], 'txt')
   101             type or os.path.splitext(out_file)[1][1:], 'txt')
   102 
   102 
   103         # do the coversion
   103         # do the conversion
   104         self._perform_conversion(in_file, out_file, type)
   104         self._perform_conversion(in_file, out_file, type)
   105 
   105 
   106         # return a byte string if no out_file is specified
   106         # return a byte string if no out_file is specified
   107         if return_bytes:
   107         if return_bytes:
   108             fp = open(out_file,  'r')
   108             fp = open(out_file,  'r')