equal
deleted
inserted
replaced
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') |