diff options
author | George Hickman <george@ghickman.co.uk> | 2017-03-07 12:16:12 +0000 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2017-03-07 21:23:38 +0100 |
commit | 46c4ec22d70251c487a1d43c69c455fc2baab4f0 (patch) | |
tree | 446db8006b68e17c3cb0539d1adf2df7ff87bf46 /git/repo/base.py | |
parent | a0788e0be3164acd65e3bc4b5bc1b51179b967ce (diff) | |
download | gitpython-46c4ec22d70251c487a1d43c69c455fc2baab4f0.tar.gz |
Document the use of next to throw an exception when hitting EOF
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index fa9cb596..7820fd66 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -716,7 +716,7 @@ class Repo(object): # Discard all lines until we find "filename" which is # guaranteed to be the last line while True: - line = next(stream) + line = next(stream) # will fail if we reach the EOF unexpectedly tag, value = line.split(b' ', 1) if tag == b'filename': orig_filename = value |