changeset: 68741:f8d6f6797909 user: Victor Stinner date: Sun Mar 20 04:28:55 2011 +0100 files: Python/import.c description: Issue #3080: Fix case_ok() using case_bytes() Invert name and namelen arguments. diff -r cc7c0f6f60bf -r f8d6f6797909 Python/import.c --- 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;