Commits

Victor Stinner  committed f8d6f67

Issue #3080: Fix case_ok() using case_bytes()

Invert name and namelen arguments.

  • Participants
  • Parent commits cc7c0f6

Comments (0)

Files changed (1)

File Python/import.c

     match = case_bytes(
         PyBytes_AS_STRING(filebytes),
         PyBytes_GET_SIZE(filebytes) + prefix_delta,
-        PyBytes_AS_STRING(namebytes),
-        PyBytes_GET_SIZE(namebytes));
+        PyBytes_GET_SIZE(namebytes),
+        PyBytes_AS_STRING(namebytes));
     Py_DECREF(filebytes);
     Py_DECREF(namebytes);
     return match;