Skip to content

Commit

Permalink
Merge pull request #4545 from charris/style-fix
Browse files Browse the repository at this point in the history
STY: Fix some multiline C comments in npy_3kcompat.h.
  • Loading branch information
juliantaylor committed Mar 24, 2014
2 parents 3a4030c + 6b8a647 commit 8409b4c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions numpy/core/include/numpy/npy_3kcompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ npy_PyFile_Dup2(PyObject *file, char *mode, npy_off_t *orig_pos)
return NULL;
}

/* The handle needs to be dup'd because we have to call fclose
at the end */
/*
* The handle needs to be dup'd because we have to call fclose
* at the end
*/
os = PyImport_ImportModule("os");
if (os == NULL) {
return NULL;
Expand Down Expand Up @@ -231,8 +233,10 @@ npy_PyFile_DupClose2(PyObject *file, FILE* handle, npy_off_t orig_pos)
/* Close the FILE* handle */
fclose(handle);

/* Restore original file handle position, in order to not confuse
Python-side data structures */
/*
* Restore original file handle position, in order to not confuse
* Python-side data structures
*/
fd = PyObject_AsFileDescriptor(file);
if (fd == -1) {
return -1;
Expand Down

0 comments on commit 8409b4c

Please sign in to comment.