diff options
author | 2011-08-21 19:36:31 +0530 | |
---|---|---|
committer | 2011-08-21 19:36:31 +0530 | |
commit | baebb403cd1fd451e5d6c9dbb9f51cc509b917fd (patch) | |
tree | 67081dac02243c6a097e79c8e8dd49120b429fab | |
parent | commented client code (diff) | |
download | gentoostats-baebb403cd1fd451e5d6c9dbb9f51cc509b917fd.tar.gz gentoostats-baebb403cd1fd451e5d6c9dbb9f51cc509b917fd.tar.bz2 gentoostats-baebb403cd1fd451e5d6c9dbb9f51cc509b917fd.zip |
commented gentoostats-send
-rwxr-xr-x | client/gentoostats-send | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/gentoostats-send b/client/gentoostats-send index 631a331..49dcb83 100755 --- a/client/gentoostats-send +++ b/client/gentoostats-send @@ -8,6 +8,9 @@ import urllib, httplib from gentoostats.payload import Payload def getAuthInfo(auth): + """ + Read auth config + """ config = ConfigParser.ConfigParser() if len(config.read(auth)) == 0: sys.stderr.write('Cannot read ' + auth) @@ -23,6 +26,9 @@ def getAuthInfo(auth): sys.exit(1) def serialize(object, human=False): + """ + Encode using json + """ if human: indent = 2 sort_keys = True |