Skip to content

Commit

Permalink
Merge pull request #69 from harlor/amber_python_37
Browse files Browse the repository at this point in the history
Make amber parser compatible with python 3.7
  • Loading branch information
dotsdl authored Nov 23, 2018
2 parents 1813920 + 66ee00b commit d7d2663
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/alchemlyb/parsing/amber.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def _pre_gen(it, first):
yield first

while it:
yield next(it)
try:
yield next(it)
except StopIteration:
return


class SectionParser(object):
Expand Down

0 comments on commit d7d2663

Please sign in to comment.