Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb0d990

Browse files
committed
MAINT: list litteral
1 parent 98f8f9c commit bb0d990

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

numpy/_build_utils/waf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,7 @@ def check_type_size(conf, type_name, expected_sizes=None, **kw):
268268

269269
@waflib.Configure.conf
270270
def check_functions_at_once(self, funcs, **kw):
271-
header = []
272-
header = ['#ifdef __cplusplus']
273-
header.append('extern "C" {')
274-
header.append('#endif')
271+
header = ['#ifdef __cplusplus', 'extern "C" {', '#endif']
275272
for f in funcs:
276273
header.append("\tchar %s();" % f)
277274
# Handle MSVC intrinsics: force MS compiler to make a function

numpy/distutils/mingw32ccompiler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ def find_python_dll():
244244
# - find it in python main dir
245245
# - in system32,
246246
# - ortherwise (Sxs), I don't know how to get it.
247-
lib_dirs = []
248-
lib_dirs.append(sys.prefix)
249-
lib_dirs.append(os.path.join(sys.prefix, 'lib'))
247+
lib_dirs = [sys.prefix, os.path.join(sys.prefix, 'lib')]
250248
try:
251249
lib_dirs.append(os.path.join(os.environ['SYSTEMROOT'], 'system32'))
252250
except KeyError:

numpy/distutils/npy_pkg_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def libs(self, section="default"):
141141
return _escape_backslash(val)
142142

143143
def __str__(self):
144-
m = ['Name: %s' % self.name]
145-
m.append('Description: %s' % self.description)
144+
m = ['Name: %s' % self.name, 'Description: %s' % self.description]
146145
if self.requires:
147146
m.append('Requires:')
148147
else:

0 commit comments

Comments
 (0)