[Patches] [ python-Patches-416251 ] 2.1c1 mmapmodule: unused vrbl cleanup

noreply@sourceforge.net noreply@sourceforge.net
Wed, 09 May 2001 11:48:50 -0700


Patches item #416251, was updated on 2001-04-15 04:26
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=416251&group_id=5470

Category: Modules
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mark Favas (mfavas)
>Assigned to: Tim Peters (tim_one)
Summary: 2.1c1 mmapmodule: unused vrbl cleanup

Initial Comment:
Variable set but unused

*** mmapmodule.c.orig   Sun Apr 15 18:37:16 2001
--- mmapmodule.c        Sun Apr 15 18:38:43 2001
***************
*** 163,169 ****
  mmap_read_byte_method(mmap_object *self,
                      PyObject *args)
  {
-       char value;
        char *where;
        CHECK_VALID(NULL);
          if (!PyArg_ParseTuple(args, ":read_byte"))
--- 163,168 ----
***************
*** 170,176 ****
                return NULL;
        if (self->pos < self->size) {
                where = self->data + self->pos;
-               value = (char) *(where);
                self->pos += 1;
                return Py_BuildValue("c", (char)
*(where));
        } else {
--- 169,174 ----


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2001-05-09 11:48

Message:
Logged In: YES 
user_id=31435

Checked in a similar change, to mmapmodule.c rev 2.29.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=416251&group_id=5470