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 | 04ab727b39936ce489f46b7dc00efe7aca206e42 (patch) | |
tree | 7c67e53605579164bed4d57de15b8c9ec9168f94 | |
parent | c5dc075c63dc274f66a062c89b9abdd7baf13049 (diff) | |
download | rsa-04ab727b39936ce489f46b7dc00efe7aca206e42.tar.gz |
Using join to comma-delimit chops
-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 |