Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
b42ca205
Commit
b42ca205
authored
Nov 08, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't be so pedantic about cleaning up in the main function
parent
50ee86bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
src/main.c
src/main.c
+0
-4
No files found.
src/main.c
View file @
b42ca205
...
@@ -54,7 +54,6 @@ main(int argc, char** argv)
...
@@ -54,7 +54,6 @@ main(int argc, char** argv)
return
1
;
return
1
;
}
}
if
(
PyObject_SetAttrString
(
sys
,
"dont_write_bytecode"
,
Py_True
))
{
if
(
PyObject_SetAttrString
(
sys
,
"dont_write_bytecode"
,
Py_True
))
{
Py_DECREF
(
sys
);
return
1
;
return
1
;
}
}
...
@@ -62,13 +61,10 @@ main(int argc, char** argv)
...
@@ -62,13 +61,10 @@ main(int argc, char** argv)
// importing modules, which saves on filesystem I/O time
// importing modules, which saves on filesystem I/O time
PyObject
*
implementation
=
PyObject_GetAttrString
(
sys
,
"implementation"
);
PyObject
*
implementation
=
PyObject_GetAttrString
(
sys
,
"implementation"
);
if
(
implementation
==
NULL
)
{
if
(
implementation
==
NULL
)
{
Py_DECREF
(
sys
);
return
1
;
return
1
;
}
}
if
(
PyObject_SetAttrString
(
implementation
,
"cache_tag"
,
Py_None
))
{
if
(
PyObject_SetAttrString
(
implementation
,
"cache_tag"
,
Py_None
))
{
Py_DECREF
(
implementation
);
Py_DECREF
(
sys
);
return
1
;
return
1
;
}
}
...
...
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