From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qv9ED-0004uR-Hy for garchives@archives.gentoo.org; Sun, 21 Aug 2011 14:42:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B711521C22B; Sun, 21 Aug 2011 14:42:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8575F21C22B for ; Sun, 21 Aug 2011 14:42:13 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D68BC1B404C for ; Sun, 21 Aug 2011 14:42:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 87DFC8004B for ; Sun, 21 Aug 2011 14:42:11 +0000 (UTC) From: "Vikraman Choudhury" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vikraman Choudhury" Message-ID: Subject: [gentoo-commits] proj/gentoostats:master commit in: client/ X-VCS-Repository: proj/gentoostats X-VCS-Files: client/gentoostats-send X-VCS-Directories: client/ X-VCS-Committer: vikraman X-VCS-Committer-Name: Vikraman Choudhury X-VCS-Revision: baebb403cd1fd451e5d6c9dbb9f51cc509b917fd Date: Sun, 21 Aug 2011 14:42:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8f745876866823a8eb591445e6390f11 commit: baebb403cd1fd451e5d6c9dbb9f51cc509b917fd Author: Vikraman Choudhury gmail com> AuthorDate: Sun Aug 21 14:06:31 2011 +0000 Commit: Vikraman Choudhury gmail com> CommitDate: Sun Aug 21 14:06:31 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoostats.g= it;a=3Dcommit;h=3Dbaebb403 commented gentoostats-send --- 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 =20 def getAuthInfo(auth): + """ + Read auth config + """ config =3D ConfigParser.ConfigParser() if len(config.read(auth)) =3D=3D 0: sys.stderr.write('Cannot read ' + auth) @@ -23,6 +26,9 @@ def getAuthInfo(auth): sys.exit(1) =20 def serialize(object, human=3DFalse): + """ + Encode using json + """ if human: indent =3D 2 sort_keys =3D True