Skip to content

Commit 0e77966

Browse files
authored
1 parent 2937e6a commit 0e77966

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

adbe/adb_enhanced.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,10 +1498,8 @@ def _get_permissions_info_below_api_23(app_info_dump):
14981498
else:
14991499
install_time_permissions_string = install_time_permissions_regex.group(1).split("\n")
15001500

1501-
install_time_granted_permissions = []
15021501
install_time_permissions_string = filter(None, install_time_permissions_string)
1503-
for permission_string in install_time_permissions_string:
1504-
install_time_granted_permissions.append(permission_string)
1502+
install_time_granted_permissions = list(install_time_permissions_string)
15051503

15061504
permissions_info_msg = ""
15071505
if install_time_granted_permissions:

adbe/asyncio_helper.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import asyncio
22
import concurrent.futures
33

4-
# This code has to be in a separate file since it is conditionally loaded for Python 3.5 and later.
5-
64

75
# Executes method method_to_call for each argument in params_list and returns the result_list
86
def execute_in_parallel(method_to_call, params_list):
@@ -21,8 +19,7 @@ async def _list_debug_apps_async(params_list2) -> None:
2119
param) for param in params_list2
2220
]
2321

24-
for result in await asyncio.gather(*futures):
25-
result_list.append(result)
22+
result_list.extend(await asyncio.gather(*futures))
2623

2724
loop.run_until_complete(_list_debug_apps_async(params_list))
2825
return result_list

0 commit comments

Comments
 (0)