Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stef committed Feb 8, 2014
1 parent 7d7b7c9 commit 9fa45f6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pbp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ def split_by_n( seq, n ):
yield seq[:n]
seq = seq[n:]

# pure python base85 codec
# Copyright (C) 2008 Brendan Cully <brendan at kublai.com>
# pure python z85 codec - name is misleading it is not ascii85, but a variant seen here:
# http://rfc.zeromq.org/spec:32
# Copyright (C) 2008 Brendan Cully <brendan at kublai.com>,
# 2014 tlinden
# 2014 stf s@ctrlc.hu
# This software may be used and distributed according to the terms of
# the GNU General Public License, incorporated herein by reference.

_b85chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#"

_b85chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
"abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"
_b85dec = {}

def _mkb85dec():
Expand Down

0 comments on commit 9fa45f6

Please sign in to comment.