[Python-checkins] python/dist/src/Modules posixmodule.c, 2.341, 2.342
nnorwitz@users.sourceforge.net
nnorwitz at users.sourceforge.net
Mon Sep 19 08:45:56 CEST 2005
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2853/Modules
Modified Files:
posixmodule.c
Log Message:
Remove unnecessary/extra parens when returning a value.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.341
retrieving revision 2.342
diff -u -d -r2.341 -r2.342
--- posixmodule.c 19 Sep 2005 06:43:44 -0000 2.341
+++ posixmodule.c 19 Sep 2005 06:45:53 -0000 2.342
@@ -1166,7 +1166,7 @@
it is a simple dereference. */
res = _waccess(PyUnicode_AS_UNICODE(po), mode);
Py_END_ALLOW_THREADS
- return(PyBool_FromLong(res == 0));
+ return PyBool_FromLong(res == 0);
}
/* Drop the argument parsing error as narrow strings
are also valid. */
@@ -1180,7 +1180,7 @@
res = access(path, mode);
Py_END_ALLOW_THREADS
PyMem_Free(path);
- return(PyBool_FromLong(res == 0));
+ return PyBool_FromLong(res == 0);
}
#ifndef F_OK
@@ -1222,8 +1222,8 @@
ret = ttyname(id);
#endif
if (ret == NULL)
- return(posix_error());
- return(PyString_FromString(ret));
+ return posix_error();
+ return PyString_FromString(ret);
}
#endif
@@ -1244,8 +1244,8 @@
ret = ctermid(buffer);
#endif
if (ret == NULL)
- return(posix_error());
- return(PyString_FromString(buffer));
+ return posix_error();
+ return PyString_FromString(buffer);
}
#endif
More information about the Python-checkins
mailing list