Skip to content

Commit 1ec935a

Browse files
committed
ENH: improve resiliency in distutils.build_ext.finalize_options
1 parent 9cc2f5c commit 1ec935a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/_distutils/command/build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def finalize_options(self) -> None: # noqa: C901
276276
if self.undef:
277277
self.undef = self.undef.split(',')
278278

279-
if self.swig_opts is None:
279+
if not self.swig_opts:
280280
self.swig_opts = []
281281
else:
282282
self.swig_opts = self.swig_opts.split(' ')

0 commit comments

Comments
 (0)