1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
3
# This source file is part of the Swift.org open source project
4
4
#
8
8
# See https://swift.org/LICENSE.txt for license information
9
9
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
11
-
12
11
"""
13
12
The ultimate tool for building Swift.
14
13
"""
15
14
16
-
17
- from __future__ import absolute_import , print_function , unicode_literals
18
-
19
15
import json
20
16
import os
21
17
import platform
@@ -32,8 +28,6 @@ from build_swift.build_swift.constants import SWIFT_BUILD_ROOT
32
28
from build_swift .build_swift .constants import SWIFT_REPO_NAME
33
29
from build_swift .build_swift .constants import SWIFT_SOURCE_ROOT
34
30
35
- import six
36
-
37
31
from swift_build_support .swift_build_support import build_script_invocation
38
32
from swift_build_support .swift_build_support import shell
39
33
from swift_build_support .swift_build_support import targets
@@ -119,7 +113,7 @@ class JSONDumper(json.JSONEncoder):
119
113
def default (self , o ):
120
114
if hasattr (o , '__dict__' ):
121
115
return vars (o )
122
- return six . text_type (o )
116
+ return str (o )
123
117
124
118
125
119
def print_xcodebuild_versions (file = sys .stdout ):
@@ -506,7 +500,7 @@ def main_preset():
506
500
try :
507
501
preset_parser .read_files (args .preset_file_names )
508
502
except presets .PresetError as e :
509
- fatal_error (six . text_type (e ))
503
+ fatal_error (str (e ))
510
504
511
505
if args .show_presets :
512
506
for name in sorted (preset_parser .preset_names ,
@@ -527,7 +521,7 @@ def main_preset():
527
521
args .preset ,
528
522
vars = args .preset_substitutions )
529
523
except presets .PresetError as e :
530
- fatal_error (six . text_type (e ))
524
+ fatal_error (str (e ))
531
525
532
526
preset_args = migration .migrate_swift_sdks (preset .args )
533
527
0 commit comments