couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "ExternalProcesses" by PaulDavis
Date Sat, 31 Jan 2009 23:28:33 GMT
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:
Definitely forgot to s/simplejson/json/ in the rest of the code.

------------------------------------------------------------------------------
      # 'for line in sys.stdin' won't work here
      line = sys.stdin.readline()
      while line:
-         yield simplejson.loads(line)
+         yield json.loads(line)
          line = sys.stdin.readline()
  
  def respond(code=200, data={}, headers={}):
-     sys.stdout.write("%s\n" % simplejson.dumps({"code": code, "json": data, "headers": headers}))
+     sys.stdout.write("%s\n" % json.dumps({"code": code, "json": data, "headers": headers}))
      sys.stdout.flush()
  
  def main():

Mime
View raw message