Private module function.
(string, map_1, map_2)
| 345 | return cache |
| 346 | |
| 347 | def _decode(string, map_1, map_2): |
| 348 | 'Private module function.' |
| 349 | cache = '' |
| 350 | iterator = iter(string) |
| 351 | for byte in iterator: |
| 352 | bits_12 = map_1[ord(byte)] << 6 |
| 353 | bits_34 = map_1[ord(iterator.next())] << 4 |
| 354 | bits_56 = map_1[ord(iterator.next())] << 2 |
| 355 | bits_78 = map_1[ord(iterator.next())] |
| 356 | cache += map_2[bits_12 + bits_34 + bits_56 + bits_78] |
| 357 | return cache |
| 358 | |
| 359 | ################################################################################ |
| 360 |
no test coverage detected