Skip to content

Commit ebe20a4

Browse files
committed
api_checker: Drop support for Python 2
This converts the `utils/api_checker` scripts to support Python 3 only. It removes all `from __future__` imports, and switches any `python` shebangs to `python3`.
1 parent 44a9753 commit ebe20a4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

utils/api_checker/sdk-module-lists/infer-imports.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/env python -u
2-
3-
from __future__ import print_function
1+
#!/usr/bin/env python3 -u
42

53
import os
64
import sys

utils/api_checker/swift-api-checker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import print_function
4-
53
import argparse
64
import os
75
import subprocess

0 commit comments

Comments
 (0)