diff options
author | Rob Austein <sra@hactrn.net> | 2016-10-21 00:44:46 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-10-21 00:44:46 -0400 |
commit | bbb84e218f971d9dd134e85557951b36146c017a (patch) | |
tree | 58f155d1bfc4bb85b42b31a7e137fb688f764925 /tests/time-keygen.py | |
parent | 7c47b5772bb2846fc6193b3c8128b376637c32e7 (diff) |
Better enum handling, more readable RPC methods.
Using a context manager allows us to write the individual RPC methods
fairly legibly, while still enforcing xdrlib.Unpacker.done() logic.
Python doesn't really have enums in the sense that C does, and many
people have put entirely too much skull sweat into trying to invent
the Most Pythonic reimplementation of the enum concept, but an int
subclass with a few extra methods is close enough for our purposes.
Diffstat (limited to 'tests/time-keygen.py')
0 files changed, 0 insertions, 0 deletions