Merge pull request #463 from OpenKMIP/bug/fix-invalid-escape-sequences

Remove invalid escape sequences
This commit is contained in:
Peter Hamilton 2018-11-15 14:30:49 -05:00 committed by GitHub
commit cb776ac59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ if __name__ == '__main__':
protocol_versions = list()
if opts.protocol_versions is not None:
for version in re.split(',| ', opts.protocol_versions):
mm = re.split('\.', version)
mm = re.split(r'\.', version)
protocol_versions.append(ProtocolVersion(int(mm[0]), int(mm[1])))
# Build the client and connect to the server

View File

@ -1444,7 +1444,7 @@ class KmipEngine(object):
else:
raise exceptions.InvalidField(
"The cryptographic length must correspond to a valid "
"number of bytes (i.e., it must be a multiple of 8)."
"number of bytes; it must be a multiple of 8."
)
else:
raise exceptions.InvalidField(

View File

@ -4108,7 +4108,7 @@ class TestKmipEngine(testtools.TestCase):
self.assertRaisesRegexp(
exceptions.InvalidField,
"The cryptographic length must correspond to a valid number of "
"bytes \(i.e., it must be a multiple of 8\).",
"bytes; it must be a multiple of 8.",
e._process_derive_key,
*args
)