Remove unused imports

This commit is contained in:
Hendrikto 2019-04-04 21:40:16 +02:00
parent cc3e660d7e
commit 49a81308c0
18 changed files with 4 additions and 24 deletions

View File

@ -5,7 +5,6 @@ EnsureSConsVersion(0, 98, 1)
# System # System
import glob import glob
import os import os
import string
import sys import sys
# Local # Local

View File

@ -1,11 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import argparse import argparse
import sys
import os import os
import re import re
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
from collections import defaultdict, OrderedDict from collections import OrderedDict
# Uncomment to do type checks. I have it commented out so it works below Python 3.5 # Uncomment to do type checks. I have it commented out so it works below Python 3.5
#from typing import List, Dict, TextIO, Tuple, Iterable, Optional, DefaultDict, Any, Union #from typing import List, Dict, TextIO, Tuple, Iterable, Optional, DefaultDict, Any, Union

View File

@ -6,7 +6,7 @@ All such functions are invoked in a subprocess on Windows to prevent build flaki
import os import os
import os.path import os.path
from platform_methods import subprocess_main from platform_methods import subprocess_main
from compat import encode_utf8, byte_to_str, open_utf8, escape_string from compat import encode_utf8, byte_to_str, open_utf8
def make_doc_header(target, source, env): def make_doc_header(target, source, env):

View File

@ -4,7 +4,6 @@ import sys
import re import re
import glob import glob
import string import string
import datetime
import subprocess import subprocess
from compat import iteritems, isbasestring, decode_utf8 from compat import iteritems, isbasestring, decode_utf8

View File

@ -257,7 +257,6 @@ def find_msbuild_windows():
def mono_build_solution(source, target, env): def mono_build_solution(source, target, env):
import subprocess import subprocess
import mono_reg_utils as monoreg
from shutil import copyfile from shutil import copyfile
sln_path = os.path.abspath(str(source[0])) sln_path = os.path.abspath(str(source[0]))

View File

@ -5,7 +5,7 @@ import sys
import subprocess import subprocess
from distutils.version import LooseVersion from distutils.version import LooseVersion
from SCons.Script import BoolVariable, Dir, Environment, File, SCons, Variables from SCons.Script import BoolVariable, Dir, Environment, Variables
monoreg = imp.load_source('mono_reg_utils', 'modules/mono/mono_reg_utils.py') monoreg = imp.load_source('mono_reg_utils', 'modules/mono/mono_reg_utils.py')

View File

@ -2,7 +2,6 @@
Import('env') Import('env')
import shutil
from compat import open_utf8 from compat import open_utf8
from distutils.version import LooseVersion from distutils.version import LooseVersion
from detect import get_ndk_version from detect import get_ndk_version

View File

@ -1,6 +1,5 @@
import os import os
import sys import sys
import string
import platform import platform
from distutils.version import LooseVersion from distutils.version import LooseVersion

View File

@ -2,8 +2,6 @@
Import('env') Import('env')
import os
iphone_lib = [ iphone_lib = [
'godot_iphone.cpp', 'godot_iphone.cpp',
'os_iphone.cpp', 'os_iphone.cpp',

View File

@ -1,5 +1,4 @@
import os import os
import string
import sys import sys
from methods import detect_darwin_sdk_path from methods import detect_darwin_sdk_path

View File

@ -1,5 +1,4 @@
import os import os
import sys
def is_active(): def is_active():

View File

@ -2,7 +2,6 @@
Import('env') Import('env')
import os
from platform_methods import run_in_subprocess from platform_methods import run_in_subprocess
import platform_osx_builders import platform_osx_builders

View File

@ -1,7 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import os
import platform
import sys import sys
Import('env') Import('env')

View File

@ -1,6 +1,5 @@
import methods import methods
import os import os
import string
import sys import sys
@ -25,8 +24,6 @@ def can_build():
def get_opts(): def get_opts():
from SCons.Variables import BoolVariable
return [ return [
('msvc_version', 'MSVC version to use (ignored if the VCINSTALLDIR environment variable is set)', None), ('msvc_version', 'MSVC version to use (ignored if the VCINSTALLDIR environment variable is set)', None),
] ]

View File

@ -1,6 +1,5 @@
import methods import methods
import os import os
import sys
def is_active(): def is_active():

View File

@ -2,7 +2,6 @@
Import('env') Import('env')
import os
from platform_methods import run_in_subprocess from platform_methods import run_in_subprocess
import platform_x11_builders import platform_x11_builders

View File

@ -1,9 +1,9 @@
import os import os
import platform import platform
import sys import sys
from compat import decode_utf8
from methods import get_compiler_version, using_gcc from methods import get_compiler_version, using_gcc
def is_active(): def is_active():
return True return True

View File

@ -1,8 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
import os
import glob import glob
import string
enc = "utf-8" enc = "utf-8"