mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Trimmed trailing whitespace.
This commit is contained in:
parent
0e67fd478f
commit
86c7d2f220
1 changed files with 2 additions and 2 deletions
|
|
@ -1272,7 +1272,7 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
|
||||||
if (Py_VerboseFlag > 1)
|
if (Py_VerboseFlag > 1)
|
||||||
PySys_WriteStderr("# trying %s\n", buf);
|
PySys_WriteStderr("# trying %s\n", buf);
|
||||||
filemode = fdp->mode;
|
filemode = fdp->mode;
|
||||||
if (filemode[0] == 'U')
|
if (filemode[0] == 'U')
|
||||||
filemode = "r" PY_STDIOTEXTMODE;
|
filemode = "r" PY_STDIOTEXTMODE;
|
||||||
fp = fopen(buf, filemode);
|
fp = fopen(buf, filemode);
|
||||||
if (fp != NULL) {
|
if (fp != NULL) {
|
||||||
|
|
@ -2520,7 +2520,7 @@ get_file(char *pathname, PyObject *fob, char *mode)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
if (fob == NULL) {
|
if (fob == NULL) {
|
||||||
if (mode[0] == 'U')
|
if (mode[0] == 'U')
|
||||||
mode = "r" PY_STDIOTEXTMODE;
|
mode = "r" PY_STDIOTEXTMODE;
|
||||||
fp = fopen(pathname, mode);
|
fp = fopen(pathname, mode);
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue