File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#XXX: Linker flags
7
7
8
- def show_fortran_compilers (_cache = []):
9
- # Using cache to prevent infinite recursion
10
- if _cache : return
8
+ def show_fortran_compilers (_cache = None ):
9
+ # Using cache to prevent infinite recursion.
10
+ if _cache :
11
+ return
12
+ elif _cache is None :
13
+ _cache = []
11
14
_cache .append (1 )
12
15
from numpy .distutils .fcompiler import show_fcompilers
13
16
import distutils .core
Original file line number Diff line number Diff line change @@ -71,12 +71,14 @@ def _dict_append(d, **kws):
71
71
else :
72
72
raise TypeError (repr (type (dv )))
73
73
74
- def _command_line_ok (_cache = [] ):
74
+ def _command_line_ok (_cache = None ):
75
75
""" Return True if command line does not contain any
76
76
help or display requests.
77
77
"""
78
78
if _cache :
79
79
return _cache [0 ]
80
+ elif _cache is None :
81
+ _cache = []
80
82
ok = True
81
83
display_opts = ['--' + n for n in Distribution .display_option_names ]
82
84
for o in Distribution .display_options :
You can’t perform that action at this time.
0 commit comments