Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3efd0a1

Browse files
committed
Remove unnecessary/extra parens when returning a value.
1 parent 24b3c22 commit 3efd0a1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Modules/posixmodule.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ posix_access(PyObject *self, PyObject *args)
11661166
it is a simple dereference. */
11671167
res = _waccess(PyUnicode_AS_UNICODE(po), mode);
11681168
Py_END_ALLOW_THREADS
1169-
return(PyBool_FromLong(res == 0));
1169+
return PyBool_FromLong(res == 0);
11701170
}
11711171
/* Drop the argument parsing error as narrow strings
11721172
are also valid. */
@@ -1180,7 +1180,7 @@ posix_access(PyObject *self, PyObject *args)
11801180
res = access(path, mode);
11811181
Py_END_ALLOW_THREADS
11821182
PyMem_Free(path);
1183-
return(PyBool_FromLong(res == 0));
1183+
return PyBool_FromLong(res == 0);
11841184
}
11851185

11861186
#ifndef F_OK
@@ -1222,8 +1222,8 @@ posix_ttyname(PyObject *self, PyObject *args)
12221222
ret = ttyname(id);
12231223
#endif
12241224
if (ret == NULL)
1225-
return(posix_error());
1226-
return(PyString_FromString(ret));
1225+
return posix_error();
1226+
return PyString_FromString(ret);
12271227
}
12281228
#endif
12291229

@@ -1244,8 +1244,8 @@ posix_ctermid(PyObject *self, PyObject *noargs)
12441244
ret = ctermid(buffer);
12451245
#endif
12461246
if (ret == NULL)
1247-
return(posix_error());
1248-
return(PyString_FromString(buffer));
1247+
return posix_error();
1248+
return PyString_FromString(buffer);
12491249
}
12501250
#endif
12511251

0 commit comments

Comments
 (0)