Skip to content

Commit fc4f5d6

Browse files
committed
chore: fix imports using isort
This will be enabled on CI
1 parent bf805aa commit fc4f5d6

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

adbe/adb_enhanced.py

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

3+
import os
4+
import random
35
import re
46
import signal
57
import subprocess
68
import sys
79
import tempfile
810
import threading
911
import time
10-
import os
11-
import random
1212
import typing
13-
from functools import wraps, partial
14-
from urllib.parse import urlparse
1513
from enum import Enum
16-
import psutil
14+
from functools import partial, wraps
15+
from urllib.parse import urlparse
1716

17+
import psutil
1818

1919
try:
2020
# This fails when the code is executed directly and not as a part of python package installation,
2121
# I definitely need a better way to handle this.
22-
from adbe.adb_helper import (get_adb_shell_property, execute_adb_command2,
23-
execute_adb_shell_command, execute_adb_shell_command2,
24-
execute_file_related_adb_shell_command, get_package,
25-
root_required_to_access_file,
26-
get_device_android_api_version, toggle_screen)
27-
from adbe.output_helper import (print_message, print_error, print_error_and_exit,
28-
print_verbose)
2922
# asyncio was introduced in version 3.5
3023
from adbe import asyncio_helper
24+
from adbe.adb_helper import (execute_adb_command2, execute_adb_shell_command,
25+
execute_adb_shell_command2,
26+
execute_file_related_adb_shell_command,
27+
get_adb_shell_property, get_device_android_api_version,
28+
get_package, root_required_to_access_file,
29+
toggle_screen)
30+
from adbe.output_helper import (print_error, print_error_and_exit, print_message,
31+
print_verbose)
3132
# Python 3.6 onwards, this throws ModuleNotFoundError
3233
except ModuleNotFoundError:
3334
# This works when the code is executed directly.
3435
# noinspection PyUnresolvedReferences
35-
from adb_helper import (get_adb_shell_property, execute_adb_command2,
36-
execute_adb_shell_command, execute_adb_shell_command2,
37-
execute_file_related_adb_shell_command, get_package,
38-
root_required_to_access_file,
39-
get_device_android_api_version, toggle_screen)
40-
36+
import asyncio_helper
37+
from adb_helper import (execute_adb_command2, execute_adb_shell_command,
38+
execute_adb_shell_command2,
39+
execute_file_related_adb_shell_command,
40+
get_adb_shell_property, get_device_android_api_version,
41+
get_package, root_required_to_access_file, toggle_screen)
4142
# noinspection PyUnresolvedReferences
42-
from output_helper import (print_message, print_error, print_error_and_exit,
43+
from output_helper import (print_error, print_error_and_exit, print_message,
4344
print_verbose)
44-
import asyncio_helper
4545

4646

4747
_KEYCODE_BACK = 4

adbe/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
try:
1010
# First try local import for development
11-
from adbe import adb_enhanced
12-
from adbe import adb_helper
11+
from adbe import adb_enhanced, adb_helper
1312
from adbe.output_helper import print_error_and_exit, set_verbose
1413
# Python 3.6 onwards, this throws ModuleNotFoundError
1514
except ModuleNotFoundError:

0 commit comments

Comments
 (0)