Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
change deprecated raise
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Oct 11, 2013
1 parent 8914396 commit 02f325c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/z3c/jsonrpc/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def processInputs(self):
elif params is None:
args = []
else:
raise TypeError, 'Unsupported JSON-RPC version (%s)' % \
self.jsonVersion
raise TypeError(
'Unsupported JSON-RPC version (%s)' % self.jsonVersion)
self._args = tuple(args)
# make environment, cookies, etc., available to request.get()
super(JSONRPCRequest, self).processInputs()
Expand Down Expand Up @@ -346,7 +346,7 @@ def _prepareResult(self, result):
charset = encoding
else:
# something's wrong. JSON did not return unicode.
raise TypeError, "JSON did not return unicode (%s)" % type(result)
raise TypeError("JSON did not return unicode (%s)" % type(result))

# set content type
self.setHeader('content-type', "application/x-javascript;charset=%s"
Expand Down

0 comments on commit 02f325c

Please sign in to comment.