amazon-ion / ion-python

A Python implementation of Amazon Ion.
https://amazon-ion.github.io/ion-docs/
Apache License 2.0
260 stars 51 forks source link

fix: seek to previous position instead of 0 after reading IVM #261

Closed melsabagh closed 1 year ago

melsabagh commented 1 year ago

Issue #, if available: https://github.com/amazon-ion/ion-python/issues/251

Description of changes: Remember current file position then seek back to it after reading the IVM instead of blindly seeking to position 0.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.