This is an automated email from the git hooks/post-receive script. sebastic pushed a commit to branch master in repository fiona.
commit 5049d1bd9fb91b695975a741941f0f923321f460 Author: Bas Couwenberg <[email protected]> Date: Wed Aug 23 16:22:19 2017 +0200 New upstream version 1.7.9 --- CHANGES.txt | 10 ++++++++++ fiona/__init__.py | 2 +- fiona/_drivers.pyx | 4 ++-- fiona/collection.py | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index efadc40..5ea6932 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,16 @@ Changes All issue numbers are relative to https://github.com/Toblerity/Fiona/issues. +1.7.9 (2017-08-17) +------------------ + +Bug fixes: + +- Acquire the GIL for GDAL error callback functions to prevent crashes when + GDAL errors occur when the GIL has been released by user code. +- Sync and flush layers when closing even when the number of features is not + precisely known (#467). + 1.7.8 (2017-06-20) ------------------ diff --git a/fiona/__init__.py b/fiona/__init__.py index 5909eba..3b53f06 100644 --- a/fiona/__init__.py +++ b/fiona/__init__.py @@ -81,7 +81,7 @@ import uuid __all__ = ['bounds', 'listlayers', 'open', 'prop_type', 'prop_width'] -__version__ = "1.7.8" +__version__ = "1.7.9" __gdal_version__ = get_gdal_release_name().decode('utf-8') log = logging.getLogger(__name__) diff --git a/fiona/_drivers.pyx b/fiona/_drivers.pyx index 1886833..5e75da7 100644 --- a/fiona/_drivers.pyx +++ b/fiona/_drivers.pyx @@ -71,10 +71,10 @@ code_map = { IF UNAME_SYSNAME == "Windows": - cdef void * __stdcall errorHandler(int eErrClass, int err_no, char *msg): + cdef void * __stdcall errorHandler(int eErrClass, int err_no, char *msg) with gil: log.log(level_map[eErrClass], "%s in %s", code_map[err_no], msg) ELSE: - cdef void * errorHandler(int eErrClass, int err_no, char *msg): + cdef void * errorHandler(int eErrClass, int err_no, char *msg) with gil: log.log(level_map[eErrClass], "%s in %s", code_map[err_no], msg) diff --git a/fiona/collection.py b/fiona/collection.py index ada8d6d..2599f2d 100644 --- a/fiona/collection.py +++ b/fiona/collection.py @@ -389,7 +389,7 @@ class Collection(object): def flush(self): """Flush the buffer.""" - if self.session is not None and self.session.get_length() > 0: + if self.session is not None: self.session.sync(self) new_len = self.session.get_length() self._len = new_len > self._len and new_len or self._len -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/fiona.git _______________________________________________ Pkg-grass-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

