@@ -104,14 +104,19 @@ def parseLine(line, line_no, test_case, incremental_edit_args, reparse_args,
104
104
# Nothing more to do
105
105
line = ''
106
106
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 )
108
110
109
111
110
112
def prepareForIncrParse (test_file , test_case , pre_edit_file , post_edit_file ,
111
113
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 :
115
120
116
121
current_reparse_start = None
117
122
0 commit comments