LibreCat / Catmandu

Catmandu - a data processing toolkit
https://librecat.org
175 stars 31 forks source link

use generator only once in importer #354

Closed nicolasfranck closed 5 years ago

nicolasfranck commented 5 years ago

Catmandu importers cannot rewind the stream. So a call to a generator should be blocked. This way methods like "first" and "rest" should work as expected (see https://github.com/LibreCat/Catmandu/issues/353)

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 93.872% when pulling b2d4293b13f29da9dadfe9eaaedbaed331951eeb on iterator_once into 1dfa5c4530a30dbfb9fe84e2a9da10be4ed299ce on dev.