changeset 11:d30e2253c3d6

Remove unnecessary code. session.exit() is unnecessary for a function that does not read stdin.
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 29 Mar 2011 01:30:00 +0800
parents ee4124570098
children a5699b110308
files example/random_num.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/example/random_num.py	Tue Mar 29 01:27:39 2011 +0800
+++ b/example/random_num.py	Tue Mar 29 01:30:00 2011 +0800
@@ -4,7 +4,6 @@
 def rand(args, env, session):
     num = random.randint(0, 1024)
     session.send(str(num))
-    session.exit(0)
     pass
 
 run('echo random number `$py rand`')