From 3cc699f60c1a9b731caab7449781b325bfc70a7c Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Mon, 4 Nov 2024 16:19:27 -0800 Subject: [PATCH] cleanup strip code Signed-off-by: Jade Abraham --- tools/chplcheck/src/driver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/chplcheck/src/driver.py b/tools/chplcheck/src/driver.py index a986127bd42..0514ff02be6 100644 --- a/tools/chplcheck/src/driver.py +++ b/tools/chplcheck/src/driver.py @@ -75,9 +75,7 @@ def rules_and_descriptions(self): for rule in itertools.chain( self.BasicRules, self.AdvancedRules, self.LocationRules ): - doc = rule.check_func.__doc__ - if doc is None: - doc = "" + doc = rule.check_func.__doc__ or "" # if there is an escaped underscore, remove the escape doc = doc.replace("\\_", "_")