summaryrefslogtreecommitdiff
path: root/docs/narr/events.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-08-16 09:20:43 +0200
committerChris McDonough <chrism@plope.com>2013-08-16 09:20:43 +0200
commitbedddda9e128bd4497ddfa1122ea06288ee1c58f (patch)
tree4059af6880d0f7f50b68b7407b0381262eb4ace7 /docs/narr/events.rst
parent5aab1e9c2aebbbb0e955a34067db9a196d430a0c (diff)
parentedfc4f80a1240f6f5f0c41e53078a8f5d305075f (diff)
downloadpyramid-bedddda9e128bd4497ddfa1122ea06288ee1c58f.tar.gz
pyramid-bedddda9e128bd4497ddfa1122ea06288ee1c58f.tar.bz2
pyramid-bedddda9e128bd4497ddfa1122ea06288ee1c58f.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/events.rst')
-rw-r--r--docs/narr/events.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/events.rst b/docs/narr/events.rst
index 11af89ca6..2accb3dbe 100644
--- a/docs/narr/events.rst
+++ b/docs/narr/events.rst
@@ -26,7 +26,7 @@ subscriber is a function that accepts a single argument named `event`:
:linenos:
def mysubscriber(event):
- print event
+ print(event)
The above is a subscriber that simply prints the event to the console
when it's called.
@@ -113,10 +113,10 @@ your application like so:
:linenos:
def handle_new_request(event):
- print 'request', event.request
+ print('request', event.request)
def handle_new_response(event):
- print 'response', event.response
+ print('response', event.response)
You may configure these functions to be called at the appropriate
times by adding the following code to your application's