aboutsummaryrefslogtreecommitdiff
path: root/errorstrings.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-10-21 00:44:46 -0400
committerRob Austein <sra@hactrn.net>2016-10-21 00:44:46 -0400
commitbbb84e218f971d9dd134e85557951b36146c017a (patch)
tree58f155d1bfc4bb85b42b31a7e137fb688f764925 /errorstrings.c
parent7c47b5772bb2846fc6193b3c8128b376637c32e7 (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 'errorstrings.c')
0 files changed, 0 insertions, 0 deletions