]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
new exec syntax
authorGuido van Rossum <guido@python.org>
Mon, 18 Sep 1995 22:00:37 +0000 (22:00 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 18 Sep 1995 22:00:37 +0000 (22:00 +0000)
Lib/irix5/panel.py
Lib/plat-irix5/panel.py

index 21a17ba0ae7fd925a489b7ecc29e936b8eea5e2d..2c0365c6ce213b34590449d38ac175c91fdfe3d5 100755 (executable)
@@ -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')
index 21a17ba0ae7fd925a489b7ecc29e936b8eea5e2d..2c0365c6ce213b34590449d38ac175c91fdfe3d5 100755 (executable)
@@ -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')