diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-09-19 06:45:53 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-09-19 06:45:53 (GMT) |
commit | 3efd0a1e860183ad41134070076f84bc555ef653 (patch) | |
tree | 44c4d8e1828dc94d79f8dad98c00a82cdbc667ac | |
parent | 24b3c229857faae7964bce5a1c59617a3e0690d0 (diff) | |
download | cpython-3efd0a1e860183ad41134070076f84bc555ef653.zip cpython-3efd0a1e860183ad41134070076f84bc555ef653.tar.gz cpython-3efd0a1e860183ad41134070076f84bc555ef653.tar.bz2 |
Remove unnecessary/extra parens when returning a value.
-rw-r--r-- | Modules/posixmodule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e1bdb1c..183e02a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1166,7 +1166,7 @@ posix_access(PyObject *self, PyObject *args) 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 @@ posix_access(PyObject *self, PyObject *args) 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 @@ posix_ttyname(PyObject *self, PyObject *args) 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 @@ posix_ctermid(PyObject *self, PyObject *noargs) ret = ctermid(buffer); #endif if (ret == NULL) - return(posix_error()); - return(PyString_FromString(buffer)); + return posix_error(); + return PyString_FromString(buffer); } #endif |