diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2016-10-01 20:42:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-01 20:42:27 +0200 |
| commit | 9d6b417ea3a4507ea78714f0cb7add75b13032d5 (patch) | |
| tree | 77365cb808a255eb53889725bfce775b5090330e /git/test/fixtures/cat_file.py | |
| parent | 4592785004ad1a4869d650dc35a1e9099245dad9 (diff) | |
| parent | 9a521681ff8614beb8e2c566cf3c475baca22169 (diff) | |
| download | GitPython-9d6b417ea3a4507ea78714f0cb7add75b13032d5.tar.gz GitPython-9d6b417ea3a4507ea78714f0cb7add75b13032d5.zip | |
Merge pull request #519 from ankostis/appveyor
Test project on Windows with MINGW/Cygwin git (conda2.7&3.4/cpy-3.5)
Diffstat (limited to 'git/test/fixtures/cat_file.py')
| -rw-r--r-- | git/test/fixtures/cat_file.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/git/test/fixtures/cat_file.py b/git/test/fixtures/cat_file.py index 2f1b915a..5480e628 100644 --- a/git/test/fixtures/cat_file.py +++ b/git/test/fixtures/cat_file.py @@ -1,5 +1,6 @@ import sys -for line in open(sys.argv[1]).readlines(): - sys.stdout.write(line) - sys.stderr.write(line) +with open(sys.argv[1]) as fd: + for line in fd.readlines(): + sys.stdout.write(line) + sys.stderr.write(line) |
