2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-29 20:37:36 +00:00

5 Commits

Author SHA1 Message Date
Jarrod Johnson
b985624a4b Remove callback arguments from most functions.
After some contemplation, I realized that given the underlying behavior of 'wait_for_rsp', that
synchronous and asynchronous calls play well with each other.  The pattern of considering an 'onlogon'
function as running in a sort of greenthread works well and leads to much more comprehensible code
for the average person.  While removing those arguments, the module contents were reorganized to
serve as an example of how more straightforward code written in this fashion may be.

Change-Id: I9c83660e4d3c68ad8ae0c016a3377b2a0e7ee6ec
2013-07-25 15:23:06 -04:00
Jarrod Johnson
0e8ca33842 PEP8 compliance
Change instances in code where flake8 complained

Change-Id: I0b125fcff39024f9d4bf3c4c26a863efd0fa5cba
2013-07-16 15:27:04 -04:00
Devananda van der Veen
ca22a48de5 Fix all pep8 errors except E128 and E501
Ran autopep8 on the four .py files in this module.
Manully fixed many additional pep8 errors as well,
Turned some long-line-comments into proper NOTE lines,
but there are more to do...

Change-Id: I657ba037863860ec3956150931c2c0e41085bd63
2013-07-02 06:11:39 -07:00
Jarrod Johnson
0a01fe446d Reorganize pieces into 'private' to suggest to consumers the bits tehy need not think too hard about 2013-06-28 10:31:43 -04:00
Jarrod Johnson
bc19838268 Reorganie things and add a setup.py for fun 2013-06-27 15:56:19 -04:00