Permalink
Browse files

default err to req_done, res_done is None

  • Loading branch information...
mnot committed Mar 30, 2010
1 parent e0fb443 commit b180b2649868957db41b18ddb800d957e0742970
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/client.py
  2. +1 −1 src/server.py
View
@@ -172,7 +172,7 @@ def req_body(self, chunk):
# FIXME: self._handle_error(ERR_LEN_REQ)
self._output_body(chunk)
- def req_done(self, err):
+ def req_done(self, err=None):
"""
Signal the end of the request, whether or not there was a body. MUST be
called exactly once for each request.
View
@@ -157,7 +157,7 @@ def res_body(self, chunk):
"Send part of the response body. May be called zero to many times."
self._output_body(chunk)
- def res_done(self, err):
+ def res_done(self, err=None):
"""
Signal the end of the response, whether or not there was a body. MUST be
called exactly once for each response.

0 comments on commit b180b26

Please sign in to comment.