From commits-return-1781-apmail-couchdb-commits-archive=couchdb.apache.org@couchdb.apache.org Sat Jan 31 23:21:16 2009 Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 48648 invoked from network); 31 Jan 2009 23:21:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2009 23:21:16 -0000 Received: (qmail 19327 invoked by uid 500); 31 Jan 2009 23:21:16 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 19289 invoked by uid 500); 31 Jan 2009 23:21:16 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 19280 invoked by uid 500); 31 Jan 2009 23:21:16 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 19277 invoked by uid 99); 31 Jan 2009 23:21:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Jan 2009 15:21:16 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Jan 2009 23:21:15 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 5EE2711150 for ; Sat, 31 Jan 2009 23:20:55 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: couchdb-commits@incubator.apache.org Date: Sat, 31 Jan 2009 23:20:55 -0000 Message-ID: <20090131232055.5109.68010@eos.apache.org> Subject: [Couchdb Wiki] Trivial Update of "ExternalProcesses" by PaulDavis X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification. The following page has been changed by PaulDavis: http://wiki.apache.org/couchdb/ExternalProcesses The comment on the change is: Added the note about simplejson vs. json in 2.6 ------------------------------------------------------------------------------ #! /usr/bin/env python import sys - import simplejson + + try: + # Python 2.6 + import json + except: + # Prior to 2.6 requires simplejson + import simplejson as json def requests(): - # `for line in sys.stdin` won't work here + # 'for line in sys.stdin' won't work here line = sys.stdin.readline() while line: yield simplejson.loads(line)