From 7cae87ca7b0a3a7ce497cbd335c8ec82fe680476 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 6 Sep 2006 06:51:57 +0000 Subject: Patch #1550800: make exec a function. --- Demo/sockets/rpythond.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demo/sockets/rpythond.py') diff --git a/Demo/sockets/rpythond.py b/Demo/sockets/rpythond.py index 81397d683a8..34de9829f9c 100755 --- a/Demo/sockets/rpythond.py +++ b/Demo/sockets/rpythond.py @@ -40,7 +40,7 @@ def execute(request): sys.stdout = sys.stderr = fakefile = StringIO.StringIO() try: try: - exec request in {}, {} + exec(request, {}, {}) except: print traceback.print_exc(100) -- cgit v1.2.3