~oubiwann/txjsonrpc/456441-version1-spec

« back to all changes in this revision

Viewing changes to txjsonrpc/jsonrpc.py

  • Committer: Duncan McGreggor
  • Date: 2009-11-10 06:38:49 UTC
  • Revision ID: duncan@canonical.com-20091110063849-4xubuhcqbo7n2cet
2009.11.10

* Removed old, commented-out code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
            # Inject the id into the response payload.
95
95
            if self.version > jsonrpclib.VERSION_PRE1:
96
96
                result["id"] = self.id
97
 
            #response = jsonrpclib.loads(contents)
98
 
            #result = response['result']
99
 
            #error = response['error']
100
 
            #if error:
101
 
            #    self.deferred.errback(error)
102
97
            if isinstance(result, list):
103
98
                result = result[0]
104
99
        except Exception, error: