Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc3372e

Browse files
committed
new exec syntax
1 parent aada0d5 commit dc3372e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lib/irix5/panel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def assign_members(target, attrlist, exclist, prefix):
130130
stmt = lhs + '=' + `value`
131131
if debug: print 'exec', stmt
132132
try:
133-
exec(stmt + '\n')
133+
exec stmt + '\n'
134134
except KeyboardInterrupt: # Don't catch this!
135135
raise KeyboardInterrupt
136136
except:
@@ -186,7 +186,7 @@ def build_subactuators(panel, super_act, al):
186186
if name:
187187
stmt = 'panel.' + name + ' = act'
188188
if debug: print 'exec', stmt
189-
exec(stmt + '\n')
189+
exec stmt + '\n'
190190
if is_endgroup(a):
191191
panel.endgroup()
192192
sub_al = getattrlist(a, 'al')
@@ -236,7 +236,7 @@ def build_panel(descr):
236236
act.addact(panel)
237237
if name:
238238
stmt = 'panel.' + name + ' = act'
239-
exec(stmt + '\n')
239+
exec stmt + '\n'
240240
if is_endgroup(a):
241241
panel.endgroup()
242242
sub_al = getattrlist(a, 'al')

Lib/plat-irix5/panel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def assign_members(target, attrlist, exclist, prefix):
130130
stmt = lhs + '=' + `value`
131131
if debug: print 'exec', stmt
132132
try:
133-
exec(stmt + '\n')
133+
exec stmt + '\n'
134134
except KeyboardInterrupt: # Don't catch this!
135135
raise KeyboardInterrupt
136136
except:
@@ -186,7 +186,7 @@ def build_subactuators(panel, super_act, al):
186186
if name:
187187
stmt = 'panel.' + name + ' = act'
188188
if debug: print 'exec', stmt
189-
exec(stmt + '\n')
189+
exec stmt + '\n'
190190
if is_endgroup(a):
191191
panel.endgroup()
192192
sub_al = getattrlist(a, 'al')
@@ -236,7 +236,7 @@ def build_panel(descr):
236236
act.addact(panel)
237237
if name:
238238
stmt = 'panel.' + name + ' = act'
239-
exec(stmt + '\n')
239+
exec stmt + '\n'
240240
if is_endgroup(a):
241241
panel.endgroup()
242242
sub_al = getattrlist(a, 'al')

0 commit comments

Comments
 (0)