/[thuban]/branches/WIP-pyshapelib-bramz/libraries/pyshapelib/shapelibmodule.c
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/libraries/pyshapelib/shapelibmodule.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2748 by bramz, Thu Mar 15 22:27:02 2007 UTC revision 2749 by bramz, Thu Mar 22 19:03:27 2007 UTC
# Line 554  static int shapefile_init(ShapeFileObjec Line 554  static int shapefile_init(ShapeFileObjec
554                  Py_FileSystemDefaultEncoding, &file, &mode)) return -1;                  Py_FileSystemDefaultEncoding, &file, &mode)) return -1;
555                    
556          self->handle = SHPOpen(file, mode);          self->handle = SHPOpen(file, mode);
557            if (!self->handle)
558            {
559                    PyErr_SetFromErrnoWithFilename(PyExc_IOError, file);
560            }
561    
562          PyMem_Free(file);          PyMem_Free(file);
           
563          return self->handle ? 0 : -1;          return self->handle ? 0 : -1;
564  }  }
565    

Legend:
Removed from v.2748  
changed lines
  Added in v.2749

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26