equal
deleted
inserted
replaced
1 # base85.py: pure python base85 codec |
1 # base85.py: pure python base85 codec |
2 # |
2 # |
3 # Copyright (C) 2009 Brendan Cully <brendan@kublai.com> |
3 # Copyright (C) 2009 Brendan Cully <brendan@kublai.com> |
4 # |
4 # |
5 # This software may be used and distributed according to the terms of |
5 # This software may be used and distributed according to the terms of the |
6 # the GNU General Public License, incorporated herein by reference. |
6 # GNU General Public License version 2, incorporated herein by reference. |
7 |
7 |
8 import struct |
8 import struct |
9 |
9 |
10 _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ |
10 _b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ |
11 "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~" |
11 "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~" |