From fea7134064f8cad798b69ab670747a29302e7308 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 31 Oct 2024 14:01:28 -0700 Subject: [PATCH] style: fix comment spacing and remove commented code --- aider/coders/base_coder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 2260bbd1c..47a895797 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -794,7 +794,7 @@ class Coder: """Check text for URLs and offer to open them in a browser.""" url_pattern = re.compile(r"(https?://[^\s/$.?#].[^\s]*?)([.']*$|[.'\s])") - #ai strip trailing . or ' from the url! + # ai strip trailing . or ' from the url! urls = list(set(url_pattern.findall(text))) # Use set to remove duplicates for url in urls: @@ -1152,10 +1152,10 @@ class Coder: except retry_exceptions() as err: # Print the error and its base classes err_msg = str(err) - #base_classes = [] - #for cls in err.__class__.__mro__: # Skip the class itself + # base_classes = [] + # for cls in err.__class__.__mro__: # Skip the class itself # base_classes.append(cls.__name__) - #if base_classes: + # if base_classes: # err_msg += f"\nBase classes: {' -> '.join(base_classes)}" self.io.tool_error(err_msg) retry_delay *= 2