|
| 1 | +""" |
| 2 | +Copied and tweaked from micropython-lib |
| 3 | +""" |
1 | 4 |
|
2 | 5 | PAD = '=' |
3 | 6 |
|
| 7 | +#pylint:disable=bad-whitespace,invalid-name |
4 | 8 | table_a2b_base64 = [ |
5 | 9 | -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, |
6 | 10 | -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, |
|
19 | 23 | -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, |
20 | 24 | -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, |
21 | 25 | ] |
| 26 | +#pylint:enable=bad-whitespace |
| 27 | + |
22 | 28 | def _transform(n): |
23 | 29 | if n == -1: |
24 | 30 | return '\xff' |
25 | | - else: |
26 | | - return chr(n) |
| 31 | + return chr(n) |
| 32 | + |
27 | 33 | table_a2b_base64 = ''.join(map(_transform, table_a2b_base64)) |
28 | 34 | assert len(table_a2b_base64) == 256 |
29 | 35 |
|
|
0 commit comments