diff options
author | Guido van Rossum <guido@python.org> | 1995-09-18 22:00:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-09-18 22:00:37 (GMT) |
commit | dc3372e94325dbbbad1db5f0a85e877fb8b59345 (patch) | |
tree | 64a03c2a3d82f09355517c466fad91bf97309d60 /Lib | |
parent | aada0d51a58e8ab370fc7707560e7127fb35ad97 (diff) | |
download | cpython-dc3372e94325dbbbad1db5f0a85e877fb8b59345.zip cpython-dc3372e94325dbbbad1db5f0a85e877fb8b59345.tar.gz cpython-dc3372e94325dbbbad1db5f0a85e877fb8b59345.tar.bz2 |
new exec syntax
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/irix5/panel.py | 6 | ||||
-rwxr-xr-x | Lib/plat-irix5/panel.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/irix5/panel.py b/Lib/irix5/panel.py index 21a17ba..2c0365c 100755 --- a/Lib/irix5/panel.py +++ b/Lib/irix5/panel.py @@ -130,7 +130,7 @@ def assign_members(target, attrlist, exclist, prefix): stmt = lhs + '=' + `value` if debug: print 'exec', stmt try: - exec(stmt + '\n') + exec stmt + '\n' except KeyboardInterrupt: # Don't catch this! raise KeyboardInterrupt except: @@ -186,7 +186,7 @@ def build_subactuators(panel, super_act, al): if name: stmt = 'panel.' + name + ' = act' if debug: print 'exec', stmt - exec(stmt + '\n') + exec stmt + '\n' if is_endgroup(a): panel.endgroup() sub_al = getattrlist(a, 'al') @@ -236,7 +236,7 @@ def build_panel(descr): act.addact(panel) if name: stmt = 'panel.' + name + ' = act' - exec(stmt + '\n') + exec stmt + '\n' if is_endgroup(a): panel.endgroup() sub_al = getattrlist(a, 'al') diff --git a/Lib/plat-irix5/panel.py b/Lib/plat-irix5/panel.py index 21a17ba..2c0365c 100755 --- a/Lib/plat-irix5/panel.py +++ b/Lib/plat-irix5/panel.py @@ -130,7 +130,7 @@ def assign_members(target, attrlist, exclist, prefix): stmt = lhs + '=' + `value` if debug: print 'exec', stmt try: - exec(stmt + '\n') + exec stmt + '\n' except KeyboardInterrupt: # Don't catch this! raise KeyboardInterrupt except: @@ -186,7 +186,7 @@ def build_subactuators(panel, super_act, al): if name: stmt = 'panel.' + name + ' = act' if debug: print 'exec', stmt - exec(stmt + '\n') + exec stmt + '\n' if is_endgroup(a): panel.endgroup() sub_al = getattrlist(a, 'al') @@ -236,7 +236,7 @@ def build_panel(descr): act.addact(panel) if name: stmt = 'panel.' + name + ' = act' - exec(stmt + '\n') + exec stmt + '\n' if is_endgroup(a): panel.endgroup() sub_al = getattrlist(a, 'al') |