git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3 - 2to3 + miscell obvious tweaks
[sfa.git]
/
keyconvert
/
keyconvert.py
diff --git
a/keyconvert/keyconvert.py
b/keyconvert/keyconvert.py
index
5a239d5
..
2effcb6
100755
(executable)
--- a/
keyconvert/keyconvert.py
+++ b/
keyconvert/keyconvert.py
@@
-13,7
+13,7
@@
class RSA_pub_fix(RSA.RSA_pub):
return self.save_pub_key_bio(bio)
def rsa_new_pub_key(couple):
return self.save_pub_key_bio(bio)
def rsa_new_pub_key(couple):
- (e,n)=couple
+ (e,
n)=couple
rsa = m2.rsa_new()
m2.rsa_set_e(rsa, e)
m2.rsa_set_n(rsa, n)
rsa = m2.rsa_new()
m2.rsa_set_e(rsa, e)
m2.rsa_set_n(rsa, n)
@@
-108,7
+108,7
@@
def convert(fin, fout):
if __name__ == "__main__":
if len(sys.argv) != 3:
if __name__ == "__main__":
if len(sys.argv) != 3:
- print
"Usage: %s <input-file> <output-file>"
+ print
("Usage: %s <input-file> <output-file>")
sys.exit(1)
fin = sys.argv[1]
sys.exit(1)
fin = sys.argv[1]