[Python-checkins] cpython: Issue #3080: Fix case_ok() using case_bytes() (original) (raw)
victor.stinner python-checkins at python.org
Sun Mar 20 04:29:00 CET 2011
- Previous message: [Python-checkins] cpython: Issue #3080: skip test_bdist_rpm if sys.executable is not encodable to UTF-8
- Next message: [Python-checkins] cpython: Issue #3080: Fix call to case_ok() in find_init_module()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
http://hg.python.org/cpython/rev/f8d6f6797909 changeset: 68741:f8d6f6797909 user: Victor Stinner <victor.stinner at haypocalc.com> date: Sun Mar 20 04:28:55 2011 +0100 summary: Issue #3080: Fix case_ok() using case_bytes()
Invert name and namelen arguments.
files: Python/import.c
diff --git a/Python/import.c b/Python/import.c --- a/Python/import.c +++ b/Python/import.c @@ -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),
Py_DECREF(filebytes); Py_DECREF(namebytes); return match;PyBytes_AS_STRING(namebytes));
-- Repository URL: http://hg.python.org/cpython
- Previous message: [Python-checkins] cpython: Issue #3080: skip test_bdist_rpm if sys.executable is not encodable to UTF-8
- Next message: [Python-checkins] cpython: Issue #3080: Fix call to case_ok() in find_init_module()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]