File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -413,8 +413,7 @@ def compile( # noqa: C901
413
413
args = [self .cc ] + compile_opts + pp_opts
414
414
if add_cpp_opts :
415
415
args .append ('/EHsc' )
416
- args .append (input_opt )
417
- args .append ("/Fo" + obj )
416
+ args .extend ((input_opt , "/Fo" + obj ))
418
417
args .extend (extra_postargs )
419
418
420
419
try :
Original file line number Diff line number Diff line change @@ -294,8 +294,7 @@ def link( # noqa: C901
294
294
ld_args .append (libfile )
295
295
296
296
# some default libraries
297
- ld_args .append ('import32' )
298
- ld_args .append ('cw32mt' )
297
+ ld_args .extend (('import32' , 'cw32mt' ))
299
298
300
299
# def file for export symbols
301
300
ld_args .extend ([',' , def_file ])
Original file line number Diff line number Diff line change @@ -152,8 +152,7 @@ def test_check_restructuredtext_with_syntax_highlight(self):
152
152
pytest .importorskip ('docutils' )
153
153
# Don't fail if there is a `code` or `code-block` directive
154
154
155
- example_rst_docs = []
156
- example_rst_docs .append (
155
+ example_rst_docs = [
157
156
textwrap .dedent (
158
157
"""\
159
158
Here's some code:
@@ -163,9 +162,7 @@ def test_check_restructuredtext_with_syntax_highlight(self):
163
162
def foo():
164
163
pass
165
164
"""
166
- )
167
- )
168
- example_rst_docs .append (
165
+ ),
169
166
textwrap .dedent (
170
167
"""\
171
168
Here's some code:
@@ -175,8 +172,8 @@ def foo():
175
172
def foo():
176
173
pass
177
174
"""
178
- )
179
- )
175
+ ),
176
+ ]
180
177
181
178
for rest_with_code in example_rst_docs :
182
179
pkg_info , dist = self .create_dist (long_description = rest_with_code )
You can’t perform that action at this time.
0 commit comments