2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-28 14:13:33 +00:00

Update the ProtocolVersion implementation

This change updates the implementation of the ProtocolVersion
struct, bringing it inline with the current struct style. All
uses of the struct have been updated to reflect these changes,
as have the struct unit tests.
This commit is contained in:
Peter Hamilton
2018-02-22 13:35:11 -05:00
parent 4df9273bae
commit dd4a078cc1
14 changed files with 557 additions and 427 deletions

View File

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