Commit 8c60afef authored by Neal Norwitz's avatar Neal Norwitz

Remove unnecessary/extra parens when returning a value.

parent 97f08943
...@@ -1166,7 +1166,7 @@ posix_access(PyObject *self, PyObject *args) ...@@ -1166,7 +1166,7 @@ posix_access(PyObject *self, PyObject *args)
it is a simple dereference. */ it is a simple dereference. */
res = _waccess(PyUnicode_AS_UNICODE(po), mode); res = _waccess(PyUnicode_AS_UNICODE(po), mode);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
return(PyBool_FromLong(res == 0)); return PyBool_FromLong(res == 0);
} }
/* Drop the argument parsing error as narrow strings /* Drop the argument parsing error as narrow strings
are also valid. */ are also valid. */
...@@ -1180,7 +1180,7 @@ posix_access(PyObject *self, PyObject *args) ...@@ -1180,7 +1180,7 @@ posix_access(PyObject *self, PyObject *args)
res = access(path, mode); res = access(path, mode);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
PyMem_Free(path); PyMem_Free(path);
return(PyBool_FromLong(res == 0)); return PyBool_FromLong(res == 0);
} }
#ifndef F_OK #ifndef F_OK
...@@ -1222,8 +1222,8 @@ posix_ttyname(PyObject *self, PyObject *args) ...@@ -1222,8 +1222,8 @@ posix_ttyname(PyObject *self, PyObject *args)
ret = ttyname(id); ret = ttyname(id);
#endif #endif
if (ret == NULL) if (ret == NULL)
return(posix_error()); return posix_error();
return(PyString_FromString(ret)); return PyString_FromString(ret);
} }
#endif #endif
...@@ -1244,8 +1244,8 @@ posix_ctermid(PyObject *self, PyObject *noargs) ...@@ -1244,8 +1244,8 @@ posix_ctermid(PyObject *self, PyObject *noargs)
ret = ctermid(buffer); ret = ctermid(buffer);
#endif #endif
if (ret == NULL) if (ret == NULL)
return(posix_error()); return posix_error();
return(PyString_FromString(buffer)); return PyString_FromString(buffer);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment