gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 2/4] Move loop invariants in front of the loop.


From: Beat Bolli
Subject: [gpsd-dev] [PATCH 2/4] Move loop invariants in front of the loop.
Date: Sat, 20 Feb 2016 13:21:04 +0100

Signed-off-by: Beat Bolli <address@hidden>
---
 devtools/identify_failing_build_options.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/devtools/identify_failing_build_options.py 
b/devtools/identify_failing_build_options.py
index e323839..1e8f87a 100755
--- a/devtools/identify_failing_build_options.py
+++ b/devtools/identify_failing_build_options.py
@@ -79,7 +79,10 @@ knobs = [
 
 def main(starting_number_of_options=0):
     import itertools
+    import subprocess
+
     failed_configurations = []
+    dev_null = open('/dev/null', 'w')
 
     static_params = [key + '=on' for key in always_on]
     static_params += [key + '=off' for key in always_off]
@@ -94,8 +97,6 @@ def main(starting_number_of_options=0):
 
             # print {'on_params': row, 'scons_params': params}
 
-            dev_null = open('/dev/null', 'w')
-            import subprocess
             command = ['scons', '-j9']
             command.extend(params)
             if os.path.exists('.scons-option-cache'):
-- 
2.7.1.370.gb2aa7f8



reply via email to

[Prev in Thread] Current Thread [Next in Thread]