[Python-checkins] cpython: Issues #25890, #25891, #25892: Removed unused variables in Windows code.

serhiy.storchaka python-checkins at python.org
Fri Dec 18 03:03:40 EST 2015


https://hg.python.org/cpython/rev/77bd84a6964a
changeset:   99613:77bd84a6964a
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri Dec 18 10:03:13 2015 +0200
summary:
  Issues #25890, #25891, #25892: Removed unused variables in Windows code.
Reported by Alexander Riccio.

files:
  Modules/posixmodule.c   |  2 --
  Objects/unicodeobject.c |  1 -
  2 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3463,7 +3463,6 @@
     char *bufptr = namebuf;
     /* only claim to have space for MAX_PATH */
     Py_ssize_t len = Py_ARRAY_LENGTH(namebuf)-4;
-    PyObject *po = NULL;
     wchar_t *wnamebuf = NULL;
 
     if (!path->narrow) {
@@ -12380,7 +12379,6 @@
     HANDLE tok;
     TOKEN_PRIVILEGES tok_priv;
     LUID luid;
-    int meth_idx = 0;
 
     if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &tok))
         return 0;
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7332,7 +7332,6 @@
     BOOL usedDefaultChar = FALSE;
     BOOL *pusedDefaultChar = &usedDefaultChar;
     int outsize;
-    PyObject *exc = NULL;
     wchar_t *p;
     Py_ssize_t size;
     const DWORD flags = encode_code_page_flags(code_page, NULL);

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list