File tree Expand file tree Collapse file tree 6 files changed +35
-11
lines changed
tools/SourceKit/bindings/python/sourcekitd Expand file tree Collapse file tree 6 files changed +35
-11
lines changed Original file line number Diff line number Diff line change 10
10
#
11
11
#===------------------------------------------------------------------------===#
12
12
13
- from ctypes import *
13
+ from ctypes import (
14
+ CFUNCTYPE ,
15
+ POINTER ,
16
+ Structure ,
17
+ addressof ,
18
+ c_bool ,
19
+ c_char_p ,
20
+ c_int ,
21
+ c_int64 ,
22
+ c_size_t ,
23
+ c_uint64 ,
24
+ c_void_p ,
25
+ cdll ,
26
+ py_object ,
27
+ string_at ,
28
+ )
14
29
15
30
# ctypes doesn't implicitly convert c_void_p to the appropriate wrapper
16
31
# object. This is a problem, because it means that from_parameter will see an
Original file line number Diff line number Diff line change @@ -21,8 +21,16 @@ import textwrap
21
21
22
22
sys .path .append (os .path .dirname (__file__ ))
23
23
24
- from SwiftBuildSupport import *
25
-
24
+ from SwiftBuildSupport import (
25
+ HOME ,
26
+ SWIFT_BUILD_ROOT ,
27
+ SWIFT_SOURCE_ROOT ,
28
+ check_call ,
29
+ get_all_preset_names ,
30
+ get_preset_options ,
31
+ print_with_argv0 ,
32
+ quote_shell_command ,
33
+ )
26
34
27
35
# Main entry point for the preset mode.
28
36
def main_preset ():
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
- import cmpcodesize
3
+ from cmpcodesize . main import main
4
4
5
5
if __name__ == '__main__' :
6
- cmpcodesize . main ()
6
+ main ()
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import
2
- from .main import main
3
-
4
1
__author__ = 'Brian Gesiak'
5
2
__email__ = 'modocache@gmail.com'
6
3
__versioninfo__ = (0 , 1 , 0 )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import filecmp
8
8
import os
9
9
import shutil
10
10
11
- from SwiftBuildSupport import *
11
+ from SwiftBuildSupport import check_call
12
12
13
13
def merge_file_lists (src_root_dirs , skip_files , skip_subpaths ):
14
14
"""Merges the file lists recursively from all src_root_dirs supplied,
Original file line number Diff line number Diff line change @@ -19,8 +19,12 @@ import sys
19
19
20
20
sys .path .append (os .path .dirname (__file__ ))
21
21
22
- from SwiftBuildSupport import *
23
-
22
+ from SwiftBuildSupport import (
23
+ SWIFT_SOURCE_ROOT ,
24
+ WorkingDirectory ,
25
+ check_call ,
26
+ check_output ,
27
+ )
24
28
25
29
def update_git_svn (repo_path ):
26
30
with WorkingDirectory (repo_path ):
You can’t perform that action at this time.
0 commit comments