summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2009-02-06 14:38:57 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2009-02-06 14:38:57 +0000
commitb9086fdf39941343fde65551b8667e635e05f14f (patch)
treeea63bf4007e8c60e1bfe11274aa89389f6e3cd02 /numpy
parent219327a2c060304137aacc7bd0a335c35b700a8d (diff)
downloadnumpy-b9086fdf39941343fde65551b8667e635e05f14f.tar.gz
Fix another bug, see last commit.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/system_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index 18cb3347c..5f5f088ea 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -408,7 +408,8 @@ class system_info:
def parse_config_files(self):
self.cp.read(self.files)
if not self.cp.has_section(self.section):
- self.cp.add_section(self.section)
+ if self.section is not None:
+ self.cp.add_section(self.section)
def calc_libraries_info(self):
libs = self.get_libraries()