summaryrefslogtreecommitdiff
path: root/rsa/key.py
diff options
context:
space:
mode:
authorMichael Manganiello <adamantike@users.noreply.github.com>2017-01-17 13:33:08 -0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-01-17 17:33:08 +0100
commit2d81e0fe4b89398876da8a9027d1465a5bb4434b (patch)
treed37949454e2a741e21de3993113b5f08c30e12f1 /rsa/key.py
parentd3727172cedb409613739be6af197c3b03cc163d (diff)
downloadrsa-git-2d81e0fe4b89398876da8a9027d1465a5bb4434b.tar.gz
Use iterative zip in Python 2 (#85)
Good catch, thanks!
Diffstat (limited to 'rsa/key.py')
-rw-r--r--rsa/key.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/key.py b/rsa/key.py
index 8170916..196f78d 100644
--- a/rsa/key.py
+++ b/rsa/key.py
@@ -491,7 +491,7 @@ class PrivateKey(AbstractKey):
if priv[0] != 0:
raise ValueError('Unable to read this file, version %s != 0' % priv[0])
- as_ints = tuple(map(int, priv[1:6]))
+ as_ints = map(int, priv[1:6])
key = cls(*as_ints)
exp1, exp2, coef = map(int, priv[6:9])