Skip to content

Commit 98e02cc

Browse files
haeter525sidra-asa
authored andcommitted
Update docstring for tools.py
1 parent 5a2025a commit 98e02cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

quark/utils/tools.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ def contains(subset_to_check, target_list):
4444

4545

4646
def descriptor_to_androguard_format(descriptor):
47+
"""
48+
Insert a space between the arguments of the given descriptor.
49+
50+
:param descriptor: a descriptor whose arguments may or may not be
51+
separated by spaces
52+
:raises ValueError: if the descriptor is not surrounded by
53+
parentheses
54+
:return: a descriptor with arguments separated by spaces
55+
"""
56+
4757
if "(" not in descriptor or ")" not in descriptor:
4858
raise ValueError(f"Invalid descriptor. {descriptor}")
4959

0 commit comments

Comments
 (0)