fix syntax for py3

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2009-08-29 14:50:29 -05:00
parent 4369c65790
commit 9018fe40e3
1 changed files with 4 additions and 4 deletions

View File

@ -25,11 +25,11 @@ if 'ThreadOut' not in globals():
ThreadOut = py._thread.ThreadOut ThreadOut = py._thread.ThreadOut
if sys.version_info > (3, 0): if sys.version_info > (3, 0):
exec """def do_exec(co, loc): exec("""def do_exec(co, loc):
exec(co, loc)""" exec(co, loc)""")
else: else:
exec """def do_exec(co, loc): exec("""def do_exec(co, loc):
exec co in loc""" exec co in loc""")
import os import os
debug = 0 # open('/tmp/execnet-debug-%d' % os.getpid() , 'wa') debug = 0 # open('/tmp/execnet-debug-%d' % os.getpid() , 'wa')