Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psafont committed Oct 19, 2017
1 parent 1f2f1eb commit 5f7be20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jwt/api_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ def _validate_claims(self, payload, options, audience=None, issuer=None,
verify_claims = set(deprecated_requires).intersection(options)
require_options = options.setdefault('require', [])
for opt in verify_claims:
opt_claim = opt[8:]
opt_claim = opt.split('require_', 1)[1]
if options[opt]:
require_options.append(opt_claim)
warnings.warn('The ' + opt + 'parameter is deprecated. '
'Plase add ' + opt_claim +
' to the require list in options instead',
warnings.warn('The {0} parameter is deprecated. Please add {1} to'
' the require list in options instead'
.format(opt, opt_claim),
DeprecationWarning)

if isinstance(leeway, timedelta):
Expand Down

0 comments on commit 5f7be20

Please sign in to comment.