Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Jul 21, 2011
1 parent 0b0b206 commit 0eaa60f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyramid/renderers.py
Expand Up @@ -412,6 +412,8 @@ def render_to_response(self, value, system_values, request=None):
return self._make_response(result, request) return self._make_response(result, request)


def _make_response(self, result, request): def _make_response(self, result, request):
# broken out of render_to_response as a separate method for testing
# purposes
response = getattr(request, 'response', None) response = getattr(request, 'response', None)
if response is None: if response is None:
# request is None or request is not a pyramid.response.Response # request is None or request is not a pyramid.response.Response
Expand Down

0 comments on commit 0eaa60f

Please sign in to comment.