Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e6c7ba86
Commit
e6c7ba86
authored
Aug 28, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exec() -> exec
parent
c860d18d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Lib/irix5/flp.py
Lib/irix5/flp.py
+3
-3
Lib/plat-irix5/flp.py
Lib/plat-irix5/flp.py
+3
-3
No files found.
Lib/irix5/flp.py
View file @
e6c7ba86
...
...
@@ -329,7 +329,7 @@ def _parse_object(file):
#
def
create_full_form
(
inst
,
(
fdata
,
odatalist
)):
form
=
create_form
(
fdata
)
exec
(
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
)
exec
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
for
odata
in
odatalist
:
create_object_instance
(
inst
,
form
,
odata
)
...
...
@@ -338,7 +338,7 @@ def create_full_form(inst, (fdata, odatalist)):
# variable.
#
def
merge_full_form
(
inst
,
form
,
(
fdata
,
odatalist
)):
exec
(
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
)
exec
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
if
odatalist
[
0
].
Class
<>
FL
.
BOX
:
raise
error
,
'merge_full_form() expects FL.BOX as first obj'
for
odata
in
odatalist
[
1
:]:
...
...
@@ -374,7 +374,7 @@ def create_object_instance(inst, form, odata):
cbfunc
=
eval
(
'inst.'
+
odata
.
Callback
)
obj
.
set_call_back
(
cbfunc
,
odata
.
Argument
)
if
odata
.
Name
:
exec
(
'inst.'
+
odata
.
Name
+
' = obj
\
n
'
)
exec
'inst.'
+
odata
.
Name
+
' = obj
\
n
'
#
# Internal _create_object: Create the object and fill options
#
...
...
Lib/plat-irix5/flp.py
View file @
e6c7ba86
...
...
@@ -329,7 +329,7 @@ def _parse_object(file):
#
def
create_full_form
(
inst
,
(
fdata
,
odatalist
)):
form
=
create_form
(
fdata
)
exec
(
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
)
exec
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
for
odata
in
odatalist
:
create_object_instance
(
inst
,
form
,
odata
)
...
...
@@ -338,7 +338,7 @@ def create_full_form(inst, (fdata, odatalist)):
# variable.
#
def
merge_full_form
(
inst
,
form
,
(
fdata
,
odatalist
)):
exec
(
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
)
exec
'inst.'
+
fdata
.
Name
+
' = form
\
n
'
if
odatalist
[
0
].
Class
<>
FL
.
BOX
:
raise
error
,
'merge_full_form() expects FL.BOX as first obj'
for
odata
in
odatalist
[
1
:]:
...
...
@@ -374,7 +374,7 @@ def create_object_instance(inst, form, odata):
cbfunc
=
eval
(
'inst.'
+
odata
.
Callback
)
obj
.
set_call_back
(
cbfunc
,
odata
.
Argument
)
if
odata
.
Name
:
exec
(
'inst.'
+
odata
.
Name
+
' = obj
\
n
'
)
exec
'inst.'
+
odata
.
Name
+
' = obj
\
n
'
#
# Internal _create_object: Create the object and fill options
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment