summaryrefslogtreecommitdiff
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
commit04ab727b39936ce489f46b7dc00efe7aca206e42 (patch)
tree7c67e53605579164bed4d57de15b8c9ec9168f94
parentc5dc075c63dc274f66a062c89b9abdd7baf13049 (diff)
downloadrsa-04ab727b39936ce489f46b7dc00efe7aca206e42.tar.gz
Using join to comma-delimit chops
-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