summaryrefslogtreecommitdiff
path: root/jwt/algorithms.py
diff options
context:
space:
mode:
authorMark Adams <mark@markadams.me>2015-03-17 14:48:51 -0500
committerMark Adams <madams@atlassian.com>2015-03-17 14:56:42 -0500
commitfd3a489e975afe490442c6b12f089263557bd341 (patch)
tree381aa63f1b5d740f27e93cc591a38ba413618ed4 /jwt/algorithms.py
parent6a84d73f5a48488d3daf554a69500c3f42bb464d (diff)
downloadpyjwt-fd3a489e975afe490442c6b12f089263557bd341.tar.gz
Fixed indentation and spacing to pass PEP8
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r--jwt/algorithms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index bae715e..6ba8c12 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -97,8 +97,7 @@ class HMACAlgorithm(Algorithm):
if isinstance(key, text_type):
key = key.encode('utf-8')
- if (b'-----BEGIN PUBLIC KEY-----' in key
- or b'-----BEGIN CERTIFICATE-----' in key):
+ if (b'-----BEGIN PUBLIC KEY-----' in key or b'-----BEGIN CERTIFICATE-----' in key):
raise InvalidAlgorithmError(
'The specified key is an assymetric key or x509 certificate and'
' should not be used as an HMAC secret.')