Skip to content

Commit 4039d6a

Browse files
authored
Merge pull request #26 from peppelinux/master
py35 support
2 parents ad26731 + 722f6c8 commit 4039d6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# cryptojwt
22

33
![License](https://img.shields.io/badge/license-Apache%202-blue.svg)
4-
![Python version](https://img.shields.io/badge/python-3.6%20%7C%203.7-blue.svg)
4+
![Python version](https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7-blue.svg)
55

66
An implementation of the JSON cryptographic specs JWS, JWE, JWK, and JWA [RFC 7515-7518] and JSON Web Token (JWT) [RFC 7519]
77

src/cryptojwt/tools/keygen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def main():
4343
dest='rsa_exp',
4444
type=int,
4545
metavar='exponent',
46-
help=f'RSA public key exponent (default {DEFAULT_RSA_EXP})',
46+
help='RSA public key exponent (default {})'.format(DEFAULT_RSA_EXP),
4747
default=DEFAULT_RSA_EXP)
4848
parser.add_argument('--kid',
4949
dest='kid',
@@ -66,7 +66,7 @@ def main():
6666
randomkey = os.urandom(args.keysize)
6767
jwk = SYMKey(key=randomkey, kid=args.kid)
6868
else:
69-
print(f"Unknown key type: {args.kty}", file=sys.stderr)
69+
print("Unknown key type: {}".format(args.kty), file=sys.stderr)
7070
exit(1)
7171

7272
jwk_dict = jwk.serialize(private=True)

0 commit comments

Comments
 (0)