Skip to content

Commit d8ef023

Browse files
committed
fix flake8 problems
1 parent 8bde103 commit d8ef023

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: git/test/test_repo.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -781,13 +781,13 @@ def test_empty_repo(self, rw_dir):
781781
nb = r.create_head('foo')
782782
assert nb.is_valid()
783783

784-
with open( new_file_path, 'w' ) as f:
785-
f.write( 'Line 1\n' )
784+
with open(new_file_path, 'w') as f:
785+
f.write('Line 1\n')
786786

787787
r.index.add([new_file_path])
788788
r.index.commit("add line 1\nBAD MESSAGE 2\n")
789789

790-
with open( '%s/.git/logs/refs/heads/master' % (rw_dir,), 'r' ) as f:
790+
with open('%s/.git/logs/refs/heads/master' % (rw_dir,), 'r') as f:
791791
contents = f.read()
792792

793793
assert 'BAD MESSAGE' not in contents, 'log is corrupt'

0 commit comments

Comments
 (0)