aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-07 14:49:03 -0500
committerJack Lloyd <[email protected]>2017-01-07 14:49:03 -0500
commite500b11cbd47f19c2cb0ead250c427a870ebbfef (patch)
tree5440682b122ec36b4f113b72d40e11fe36775306
parentc4d30e62124c07e648917352f88e8adeb50634ec (diff)
Fix pyflakes warning
configure.py:704: import 'os' from line 24 shadowed by loop variable This was the only warning from pyflakes. It did also pick up the bad variable reference from GH #821 [ci skip]
-rwxr-xr-xconfigure.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/configure.py b/configure.py
index 693be98f2..569d5f319 100755
--- a/configure.py
+++ b/configure.py
@@ -701,15 +701,15 @@ class ModuleInfo(object):
intersect_check('external', self.header_external, 'internal', self.header_internal)
def cross_check(self, arch_info, os_info, cc_info):
- for os in self.os:
- if os not in os_info:
- raise Exception('Module %s mentions unknown OS %s' % (self.infofile, os))
- for cc in self.cc:
- if cc not in cc_info:
- raise Exception('Module %s mentions unknown compiler %s' % (self.infofile, cc))
- for arch in self.arch:
- if arch not in arch_info:
- raise Exception('Module %s mentions unknown arch %s' % (self.infofile, arch))
+ for supp_os in self.os:
+ if supp_os not in os_info:
+ raise Exception('Module %s mentions unknown OS %s' % (self.infofile, supp_os))
+ for supp_cc in self.cc:
+ if supp_cc not in cc_info:
+ raise Exception('Module %s mentions unknown compiler %s' % (self.infofile, supp_cc))
+ for supp_arch in self.arch:
+ if supp_arch not in arch_info:
+ raise Exception('Module %s mentions unknown arch %s' % (self.infofile, supp_arch))
def sources(self):
return self.source