Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jonschz committed Oct 29, 2024
1 parent cc6e94c commit 7e9f2f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion reccmp/ghidra_scripts/lego_util/function_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __init__(
colon_split = sanitize_name(self.match_info.name).split("::")
self.name = colon_split.pop()
namespace_hierachy = colon_split
self.namespace = get_or_create_namespace(self.api, "::".join(namespace_hierachy))
self.namespace = get_or_create_namespace(
self.api, "::".join(namespace_hierachy)
)

def get_full_name(self) -> str:
return f"{self.namespace.getName()}::{self.name}"
Expand Down
5 changes: 4 additions & 1 deletion reccmp/ghidra_scripts/lego_util/ghidra_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ def _create_ghidra_namespace(
namespace = api.createNamespace(namespace, part)
return namespace

def get_or_create_namespace(api: FlatProgramAPI, class_name_with_namespace: str) -> Namespace:

def get_or_create_namespace(
api: FlatProgramAPI, class_name_with_namespace: str
) -> Namespace:
colon_split = class_name_with_namespace.split("::")
class_name = colon_split[-1]
logger.info("Looking for namespace: '%s'", class_name_with_namespace)
Expand Down

0 comments on commit 7e9f2f9

Please sign in to comment.