Fix python3 error with string.lower()

This commit is contained in:
Vladimir Diaz 2017-07-13 11:45:19 -04:00
parent d13a401678
commit ce5e920a7d
No known key found for this signature in database
GPG key ID: 5DEE9B97B0E2289A

View file

@ -74,7 +74,6 @@
import binascii
import calendar
import re
import string
import datetime
import time
@ -1098,7 +1097,7 @@ def expected_meta_rolename(meta_rolename):
# Raise 'securesystemslib.exceptions.FormatError' if there is a mismatch.
securesystemslib.formats.NAME_SCHEMA.check_match(meta_rolename)
return string.lower(meta_rolename)
return meta_rolename.lower()