apply patch by @barsch, see
https://github.com/obspy/obspy/pull/798#issuecomment-43368702