From 5a288649e8fcb999c11cca17ad0c1956f3ef8e11 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 24 Sep 2021 09:20:23 -0400 Subject: Use more f-strings --- python/binaryview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 28634f83..28db7271 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -383,7 +383,7 @@ class AnalysisProgress: return "Extended Analysis" def __repr__(self): - return "" % str(self) + return f"" class BinaryDataNotificationCallbacks: @@ -636,7 +636,7 @@ class _BinaryViewTypeMetaclass(type): binaryninja._init_plugins() view_type = core.BNGetBinaryViewTypeByName(str(value)) if view_type is None: - raise KeyError("'%s' is not a valid view type" % str(value)) + raise KeyError(f"'{value}' is not a valid view type") return BinaryViewType(view_type) @@ -7844,4 +7844,4 @@ class DataVariableAndName(CoreDataVariable): self.name = var_name def __repr__(self) -> str: - return "" % (self.address, str(self.type), self.name) \ No newline at end of file + return f"" \ No newline at end of file -- cgit v1.3.1