aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'client/gentoostats-send')
-rwxr-xr-xclient/gentoostats-send6
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