[llvm] r207012 - llvm-build: Get rid of 'import *'

Anders Waldenborg anders at 0x63.nu
Wed Apr 23 12:17:42 PDT 2014


Author: andersg
Date: Wed Apr 23 14:17:42 2014
New Revision: 207012

URL: http://llvm.org/viewvc/llvm-project?rev=207012&view=rev
Log:
llvm-build: Get rid of 'import *'

This allows pyflakes catching more errors in the script.

Differential Revision: http://reviews.llvm.org/D3334


Modified:
    llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py
    llvm/trunk/utils/llvm-build/llvmbuild/main.py

Modified: llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py?rev=207012&r1=207011&r2=207012&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py Wed Apr 23 14:17:42 2014
@@ -9,7 +9,7 @@ except:
     import ConfigParser as configparser
 import sys
 
-from llvmbuild.util import *
+from llvmbuild.util import fatal, warning
 
 class ParseError(Exception):
     pass

Modified: llvm/trunk/utils/llvm-build/llvmbuild/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/main.py?rev=207012&r1=207011&r2=207012&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/main.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/main.py Wed Apr 23 14:17:42 2014
@@ -5,7 +5,7 @@ import sys
 import llvmbuild.componentinfo as componentinfo
 import llvmbuild.configutil as configutil
 
-from llvmbuild.util import *
+from llvmbuild.util import fatal, note
 
 ###
 





More information about the llvm-commits mailing list