Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8ef023

Browse filesBrowse files
committed
fix flake8 problems
1 parent 8bde103 commit d8ef023
Copy full SHA for d8ef023

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎git/test/test_repo.py

Copy file name to clipboardExpand all lines: git/test/test_repo.py
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.