From e1c9198b55cd8de3fedc3e6d20e0f91c5be235ad Mon Sep 17 00:00:00 2001 From: Peter Shipley Date: Tue, 11 Mar 2014 21:41:04 -0700 Subject: [PATCH] cleanup --- RainEagle/EagleClass.py | 125 ++++++++++++++++++---------------------- 1 file changed, 57 insertions(+), 68 deletions(-) diff --git a/RainEagle/EagleClass.py b/RainEagle/EagleClass.py index 984d25b..41be60d 100644 --- a/RainEagle/EagleClass.py +++ b/RainEagle/EagleClass.py @@ -20,9 +20,7 @@ from warnings import warn from pprint import pprint -api_arg_format = { - -} +# api_arg_format = { } __all__ = ['Eagle', 'RainEagleResponseError', 'to_epoch_1970, to_epoch_2000'] @@ -61,7 +59,7 @@ def _et2d(et) : converts an ETree to a Dict Tree lists are created for duplicate tag - if there are multiple XML of the name name + if there are multiple XML of the same name an list array is used attrib tags are converted to "tag_name" + "attrib_name" @@ -98,7 +96,7 @@ def _et2d(et) : return d -def twos_comp(val, bits=32): +def _twos_comp(val, bits=32): """compute the 2's compliment of int value val""" if( (val&(1<<(bits-1))) != 0 ): val = val - (1<