fix linting issues

This commit is contained in:
mattsb42-aws 2019-09-12 18:04:18 -07:00
parent aa6b505415
commit a2c2a83198
2 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,6 @@
from __future__ import unicode_literals
import os
import re
from collections import defaultdict
from datetime import datetime, timedelta

View File

@ -475,11 +475,10 @@ class KmsResponse(BaseResponse):
if number_of_bytes and (number_of_bytes > 1024 or number_of_bytes < 1):
raise ValidationException((
"1 validation error detected: Value '{number_of_bytes:d}' at 'numberOfBytes' failed "
"to satisfy constraint: Member must have value less than or "
"equal to 1024"
).format(number_of_bytes=number_of_bytes)
)
"1 validation error detected: Value '{number_of_bytes:d}' at 'numberOfBytes' failed "
"to satisfy constraint: Member must have value less than or "
"equal to 1024"
).format(number_of_bytes=number_of_bytes))
entropy = os.urandom(number_of_bytes)