summaryrefslogtreecommitdiff
path: root/rsa/__init__.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2011-01-09 12:55:48 +0100
committerSybren A. Stüvel <sybren@stuvel.eu>2011-01-09 12:55:48 +0100
commitcf1ed85572021db7e8d314cbd9835640638622fc (patch)
tree7c67e53605579164bed4d57de15b8c9ec9168f94 /rsa/__init__.py
parent3cf7e457f81bebe2045322a14d5d9e733869fc89 (diff)
downloadrsa-git-cf1ed85572021db7e8d314cbd9835640638622fc.tar.gz
Using join to comma-delimit chops
Diffstat (limited to 'rsa/__init__.py')
-rwxr-xr-xrsa/__init__.py6
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