diff options
author | Enji Cooper <yaneurabeya@gmail.com> | 2020-03-26 17:28:09 -0700 |
---|---|---|
committer | Enji Cooper <yaneurabeya@gmail.com> | 2020-03-27 10:35:46 -0700 |
commit | 5408b9636f4afded6db44299720a4b3f6e9883d5 (patch) | |
tree | a51cc47138daf3767740b920a41c75fc80cb97ee | |
parent | 30229dcf950d6124ee24665ff35bbce4a9baa24d (diff) | |
download | libevent-5408b9636f4afded6db44299720a4b3f6e9883d5.tar.gz |
Fix indentation for `RpcGenError`
Indentation for the exception was double what it should have been. This
change normalizes the indentation to a consistent standard with the rest
of the file.
Fix minor flake8 issues while here corresponding to the minimum number
of needed blank lines around the class and its methods.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
-rwxr-xr-x | event_rpcgen.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/event_rpcgen.py b/event_rpcgen.py index 9b66dfad..5b59c0db 100755 --- a/event_rpcgen.py +++ b/event_rpcgen.py @@ -41,12 +41,16 @@ def declare(s): def TranslateList(mylist, mydict): return [x % mydict for x in mylist] -# Exception class for parse errors + class RpcGenError(Exception): - def __init__(self, why): - self.why = why - def __str__(self): - return str(self.why) + """An Exception class for parse errors.""" + + def __init__(self, why): + self.why = why + + def __str__(self): + return str(self.why) + # Holds everything that makes a struct class Struct: |