Skip to content

Commit

Permalink
Merge pull request #34 from utkonos/minor_improvements
Browse files Browse the repository at this point in the history
Minor improvements
  • Loading branch information
davidt99 committed May 3, 2022
2 parents da590e7 + b74b664 commit d91411c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions intezer_analyze_gh_community.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Plugin for Intezer Analyze in Ghidra (python 2.7 - jython)
# @author
# @category Examples.Python
# @category Detection
# @keybinding
# @menupath
# @toolbar
Expand Down Expand Up @@ -229,8 +229,7 @@ def _enrich_function_map(self, function_map):
def write_xml_file(self, functions_map, is_partial_result):

def prettify(elem):
"""Return a pretty-printed XML string for the Element.
"""
"""Return a pretty-printed XML string for the Element."""
rough_string = ElementTree.tostring(elem, 'utf-8')
reparsed = minidom.parseString(rough_string)
return reparsed.toprettyxml(indent=" ")
Expand Down Expand Up @@ -290,10 +289,10 @@ def run(self):
print(MESSAGES['file_not_exists'])
return

print(">>> Program Info:\n" \
">>>\t%s:\n" \
"\t%s_%s\n" \
"\t(%s)\n" \
print(">>> Program Info:\n"
">>>\t%s:\n"
"\t%s_%s\n"
"\t(%s)\n"
"\t%s" % (
program_name, language_id, compiler_spec_id, creation_date, path))

Expand Down

0 comments on commit d91411c

Please sign in to comment.