diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2011-01-09 12:55:48 +0100 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2011-01-09 12:55:48 +0100 |
commit | cf1ed85572021db7e8d314cbd9835640638622fc (patch) | |
tree | 7c67e53605579164bed4d57de15b8c9ec9168f94 /rsa/__init__.py | |
parent | 3cf7e457f81bebe2045322a14d5d9e733869fc89 (diff) | |
download | rsa-git-cf1ed85572021db7e8d314cbd9835640638622fc.tar.gz |
Using join to comma-delimit chops
Diffstat (limited to 'rsa/__init__.py')
-rwxr-xr-x | rsa/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rsa/__init__.py b/rsa/__init__.py index a1bacd6..754356e 100755 --- a/rsa/__init__.py +++ b/rsa/__init__.py @@ -420,10 +420,8 @@ def encode64chops(chops): for value in chops: chips.append(int2str64(value)) - encoded = "" - - for string in chips: - encoded = encoded + string + ',' #delimit chops with comma + #delimit chops with comma + encoded = ','.join(chips) return encoded |