Return-Path: X-Original-To: apmail-community-commits-archive@minotaur.apache.org Delivered-To: apmail-community-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 97E2D18325 for ; Wed, 19 Aug 2015 10:55:49 +0000 (UTC) Received: (qmail 71888 invoked by uid 500); 19 Aug 2015 10:55:49 -0000 Delivered-To: apmail-community-commits-archive@community.apache.org Received: (qmail 71862 invoked by uid 500); 19 Aug 2015 10:55:49 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 71853 invoked by uid 99); 19 Aug 2015 10:55:49 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2015 10:55:49 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 3E780AC009E for ; Wed, 19 Aug 2015 10:55:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1696555 - /comdev/reporter.apache.org/trunk/mailglomper.py Date: Wed, 19 Aug 2015 10:55:49 -0000 To: commits@community.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150819105549.3E780AC009E@hades.apache.org> Author: sebb Date: Wed Aug 19 10:55:48 2015 New Revision: 1696555 URL: http://svn.apache.org/r1696555 Log: Add comment re projects with hyphens (empire-db) Pretty print output to make debugging easier Modified: comdev/reporter.apache.org/trunk/mailglomper.py Modified: comdev/reporter.apache.org/trunk/mailglomper.py URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/mailglomper.py?rev=1696555&r1=1696554&r2=1696555&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/mailglomper.py (original) +++ comdev/reporter.apache.org/trunk/mailglomper.py Wed Aug 19 10:55:48 2015 @@ -29,6 +29,18 @@ for i in range(0,7): data = urllib.urlopen("http://mail-archives.us.apache.org/mod_mbox/").read() print("Fetched %u bytes of main data" % len(data)) y = 0 +""" +N.B. The project name empire-db is truncated to empire in the main list + +Rather than fixing this here, it is done in the scripts that read the output file +This is because those scripts assume that the first hyphen separates the +project name from the mailing list name. +Since list names may contain hyphens (e.g. lucene-net-dev) that is a necessary assumption. + +Potentially the generated file could use a separator that is not allowed in project names, +but this would require converting the input file and potentially allowing both separators in +the files that process the output for a short while. +""" for mlist in re.finditer(r"