Skip to content

Commit 4234145

Browse files
Fix typo.
1 parent 6d17bcc commit 4234145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ _PyLong_FromDev(dev_t dev)
10351035
static int
10361036
_Py_Dev_Converter(PyObject *obj, void *p)
10371037
{
1038-
if (PyLong_Check(obj)) {
1038+
if (!PyLong_Check(obj)) {
10391039
obj = _PyNumber_Index(obj);
10401040
if (obj == NULL) {
10411041
return 0;

0 commit comments

Comments
 (0)