comparison msconvert_wrapper.py @ 1:861e3f0c2bb6

Uploaded
author galaxyp
date Thu, 14 Feb 2013 13:35:37 -0500
parents 10f4a0356342
children
comparison
equal deleted inserted replaced
0:10f4a0356342 1:861e3f0c2bb6
135 unique_numbers.add(int(match.group())) 135 unique_numbers.add(int(match.group()))
136 first_line = False 136 first_line = False
137 return unique_numbers 137 return unique_numbers
138 138
139 139
140 # TODO: Test on windows
141 def shellquote(s): 140 def shellquote(s):
142 return "'" + s.replace("'", "'\\''") + "'" 141 return '"' + s.replace('"', '\\"') + '"'
143 142
144 143
145 def _add_filter_line_from_file(filter_file, options, file_num=None): 144 def _add_filter_line_from_file(filter_file, options, file_num=None):
146 file = options.filter_table 145 file = options.filter_table
147 if not file: 146 if not file: