From f96f57408b981514382c5f42d8c4c7061c95fa94 Mon Sep 17 00:00:00 2001 From: mahaloz Date: Mon, 8 Jul 2024 09:58:02 -0700 Subject: [PATCH] Fix len=0 cmt render --- libbs/__init__.py | 2 +- libbs/artifacts/comment.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libbs/__init__.py b/libbs/__init__.py index 5b7250a8..0a80ecc4 100644 --- a/libbs/__init__.py +++ b/libbs/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.10.1" +__version__ = "1.10.2" import logging diff --git a/libbs/artifacts/comment.py b/libbs/artifacts/comment.py index 21b97cba..30469914 100644 --- a/libbs/artifacts/comment.py +++ b/libbs/artifacts/comment.py @@ -26,7 +26,8 @@ def __init__( self.decompiled = decompiled def __str__(self): - return f"" + cmt_len = len(self.comment) if self.comment else 0 + return f"" @staticmethod def linewrap_comment(comment: str, width=80):