mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-07 22:24:22 +02:00
Merge pull request #463 from OpenKMIP/bug/fix-invalid-escape-sequences
Remove invalid escape sequences
This commit is contained in:
commit
cb776ac59f
@ -41,7 +41,7 @@ if __name__ == '__main__':
|
|||||||
protocol_versions = list()
|
protocol_versions = list()
|
||||||
if opts.protocol_versions is not None:
|
if opts.protocol_versions is not None:
|
||||||
for version in re.split(',| ', opts.protocol_versions):
|
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])))
|
protocol_versions.append(ProtocolVersion(int(mm[0]), int(mm[1])))
|
||||||
|
|
||||||
# Build the client and connect to the server
|
# Build the client and connect to the server
|
||||||
|
@ -1444,7 +1444,7 @@ class KmipEngine(object):
|
|||||||
else:
|
else:
|
||||||
raise exceptions.InvalidField(
|
raise exceptions.InvalidField(
|
||||||
"The cryptographic length must correspond to a valid "
|
"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:
|
else:
|
||||||
raise exceptions.InvalidField(
|
raise exceptions.InvalidField(
|
||||||
|
@ -4108,7 +4108,7 @@ class TestKmipEngine(testtools.TestCase):
|
|||||||
self.assertRaisesRegexp(
|
self.assertRaisesRegexp(
|
||||||
exceptions.InvalidField,
|
exceptions.InvalidField,
|
||||||
"The cryptographic length must correspond to a valid number of "
|
"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,
|
e._process_derive_key,
|
||||||
*args
|
*args
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user