Skip to content

Commit c1ce8b6

Browse files
authored
Update test_util.py
Appease the python linter
1 parent dcd33ca commit c1ce8b6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

utils/incrparse/test_util.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,19 @@ def parseLine(line, line_no, test_case, incremental_edit_args, reparse_args,
104104
# Nothing more to do
105105
line = ''
106106

107-
return (pre_edit_line.encode('utf-8'), post_edit_line.encode('utf-8'), current_reparse_start)
107+
return (pre_edit_line.encode('utf-8'),
108+
post_edit_line.encode('utf-8'),
109+
current_reparse_start)
108110

109111

110112
def prepareForIncrParse(test_file, test_case, pre_edit_file, post_edit_file,
111113
incremental_edit_args, reparse_args):
112-
with io.open(test_file, mode='r', encoding='utf-8', newline='\n') as test_file_handle, \
113-
io.open(pre_edit_file, mode='w+', encoding='utf-8', newline='\n') as pre_edit_file_handle, \
114-
io.open(post_edit_file, mode='w+', encoding='utf-8', newline='\n') as post_edit_file_handle:
114+
with io.open(test_file, mode='r', encoding='utf-8',
115+
newline='\n') as test_file_handle, \
116+
io.open(pre_edit_file, mode='w+', encoding='utf-8',
117+
newline='\n') as pre_edit_file_handle, \
118+
io.open(post_edit_file, mode='w+', encoding='utf-8',
119+
newline='\n') as post_edit_file_handle:
115120

116121
current_reparse_start = None
117122

0 commit comments

Comments
 (0)