From 4fe2c069cca07aadf983f54e18dac4de492d5d69 Mon Sep 17 00:00:00 2001 From: Jim Shaver Date: Fri, 29 May 2015 23:17:48 -0400 Subject: Fixed print function to be inline with python 3 --- examples/nonblocking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/nonblocking.py') diff --git a/examples/nonblocking.py b/examples/nonblocking.py index 481c0407..7bc9c07b 100644 --- a/examples/nonblocking.py +++ b/examples/nonblocking.py @@ -4,6 +4,6 @@ from libmproxy.script import concurrent @concurrent # Remove this and see what happens def request(context, flow): - print "handle request: %s%s" % (flow.request.host, flow.request.path) + print("handle request: %s%s" % (flow.request.host, flow.request.path)) time.sleep(5) - print "start request: %s%s" % (flow.request.host, flow.request.path) \ No newline at end of file + print("start request: %s%s" % (flow.request.host, flow.request.path)) -- cgit v1.2.3