diff Python/import.c @ 68741:f8d6f6797909

Issue #3080: Fix case_ok() using case_bytes() Invert name and namelen arguments.
author Victor Stinner <victor.stinner@haypocalc.com>
date Sun, 20 Mar 2011 04:28:55 +0100
parents 80f4bd647695
children dc38c4d65cd9
line wrap: on
line diff
--- a/Python/import.c	Mon Mar 14 20:03:36 2011 -0400
+++ b/Python/import.c	Sun Mar 20 04:28:55 2011 +0100
@@ -2208,8 +2208,8 @@
     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;