diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 11:47:08 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 11:47:08 (GMT) |
commit | 25095b2be655cbe88a05e99f6956aa29cf6207d9 (patch) | |
tree | 9cb0a6ed36b1bbe62db239f5ea0a85f2ae4149bc /Python/import.c | |
parent | 58bc7a134e5a1f6ee5eadb13bbfda45638468345 (diff) | |
download | cpython-25095b2be655cbe88a05e99f6956aa29cf6207d9.zip cpython-25095b2be655cbe88a05e99f6956aa29cf6207d9.tar.gz cpython-25095b2be655cbe88a05e99f6956aa29cf6207d9.tar.bz2 |
Remove useless assignments
Warnings found by the the Clang Static Analyzer.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/import.c b/Python/import.c index bfb976c..1f28d22 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1733,7 +1733,6 @@ find_module_path(PyObject *fullname, PyObject *name, PyObject *path, Py_UNICODE buf[MAXPATHLEN+1]; Py_ssize_t buflen = MAXPATHLEN+1; PyObject *path_unicode, *filename; - const Py_UNICODE *base; Py_ssize_t len; struct stat statbuf; static struct filedescr fd_package = {"", "", PKG_DIRECTORY}; @@ -1751,7 +1750,6 @@ find_module_path(PyObject *fullname, PyObject *name, PyObject *path, else return 0; - base = PyUnicode_AS_UNICODE(path_unicode); len = PyUnicode_GET_SIZE(path_unicode); if (len + 2 + PyUnicode_GET_SIZE(name) + MAXSUFFIXSIZE >= buflen) { Py_DECREF(path_unicode); @@ -2275,12 +2273,10 @@ case_ok(PyObject *filename, Py_ssize_t prefix_delta, PyObject *name) static int find_init_module(PyObject *directory) { - size_t len; struct stat statbuf; PyObject *filename; int match; - len = PyUnicode_GET_SIZE(directory); filename = PyUnicode_FromFormat("%U%c__init__.py", directory, SEP); if (filename == NULL) return -1; |