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
da4a5f0b
Commit
da4a5f0b
authored
Jan 02, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation
parent
01a196a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Modules/posixmodule.c
Modules/posixmodule.c
+9
-9
No files found.
Modules/posixmodule.c
View file @
da4a5f0b
...
...
@@ -7305,7 +7305,7 @@ posix_tempnam(PyObject *self, PyObject *args)
name
=
tempnam
(
dir
,
pfx
);
#endif
if
(
name
==
NULL
)
return
PyErr_NoMemory
();
return
PyErr_NoMemory
();
result
=
PyString_FromString
(
name
);
free
(
name
);
return
result
;
...
...
@@ -7329,7 +7329,7 @@ posix_tmpfile(PyObject *self, PyObject *noargs)
fp
=
tmpfile
();
if
(
fp
==
NULL
)
return
posix_error
();
return
posix_error
();
return
PyFile_FromFile
(
fp
,
"<tmpfile>"
,
"w+b"
,
fclose
);
}
#endif
...
...
@@ -7360,16 +7360,16 @@ posix_tmpnam(PyObject *self, PyObject *noargs)
name
=
tmpnam
(
buffer
);
#endif
if
(
name
==
NULL
)
{
PyObject
*
err
=
Py_BuildValue
(
"is"
,
0
,
PyObject
*
err
=
Py_BuildValue
(
"is"
,
0
,
#ifdef USE_TMPNAM_R
"unexpected NULL from tmpnam_r"
"unexpected NULL from tmpnam_r"
#else
"unexpected NULL from tmpnam"
"unexpected NULL from tmpnam"
#endif
);
PyErr_SetObject
(
PyExc_OSError
,
err
);
Py_XDECREF
(
err
);
return
NULL
;
);
PyErr_SetObject
(
PyExc_OSError
,
err
);
Py_XDECREF
(
err
);
return
NULL
;
}
return
PyString_FromString
(
buffer
);
}
...
...
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